diff --git a/package.json b/package.json index e342f101..ac7bfe6c 100644 --- a/package.json +++ b/package.json @@ -35,12 +35,12 @@ } }, "dependencies": { - "@ledgerhq/hw-app-btc": "^4.32.0", + "@ledgerhq/hw-app-btc": "^4.34.0", "@ledgerhq/hw-app-eth": "^4.32.0", "@ledgerhq/hw-app-xrp": "^4.32.0", "@ledgerhq/hw-transport": "^4.32.0", "@ledgerhq/hw-transport-node-hid": "^4.32.0", - "@ledgerhq/ledger-core": "2.0.0-rc.14", + "@ledgerhq/ledger-core": "2.0.0-rc.16", "@ledgerhq/live-common": "4.13.0", "animated": "^0.2.2", "async": "^2.6.1", diff --git a/src/commands/libcoreSignAndBroadcast.js b/src/commands/libcoreSignAndBroadcast.js index b683a58b..a5847864 100644 --- a/src/commands/libcoreSignAndBroadcast.js +++ b/src/commands/libcoreSignAndBroadcast.js @@ -110,7 +110,7 @@ async function signTransaction({ const additionals = [] let expiryHeight if (currency.id === 'bitcoin_cash' || currency.id === 'bitcoin_gold') additionals.push('bip143') - if (currency.id === 'zcash') { + if (currency.id === 'zcash' || currency.id === 'komodo') { expiryHeight = Buffer.from([0x00, 0x00, 0x00, 0x00]) if (blockHeight >= 419200) { additionals.push('sapling') @@ -121,7 +121,7 @@ async function signTransaction({ } const rawInputs = transaction.getInputs() - const hasExtraData = currency.id === 'zcash' + const hasExtraData = currency.id === 'zcash' || currency.id === 'komodo' const inputs = await Promise.all( rawInputs.map(async input => { diff --git a/src/config/cryptocurrencies.js b/src/config/cryptocurrencies.js index c29ccbc7..4c29f7b3 100644 --- a/src/config/cryptocurrencies.js +++ b/src/config/cryptocurrencies.js @@ -24,6 +24,7 @@ const supported: CryptoCurrencyIds[] = [ 'vertcoin', 'peercoin', 'viacoin', + 'stakenet', 'stealthcoin', 'poswallet', 'clubcoin', diff --git a/yarn.lock b/yarn.lock index 1716e7bf..de3d8312 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1690,6 +1690,14 @@ "@ledgerhq/hw-transport" "^4.32.0" create-hash "^1.1.3" +"@ledgerhq/hw-app-btc@^4.34.0": + version "4.34.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-btc/-/hw-app-btc-4.34.0.tgz#0bbc46afd29de04ac6a73582fbf9a09fcf5ed117" + integrity sha512-xR4rH8o8YRvyhnTvb8g89NAJQQqXJkApiFtCvduBamu5V+rDvhHYlFu2B+CU6g8lzLFACMDIqJqXbmwT80AGjw== + dependencies: + "@ledgerhq/hw-transport" "^4.32.0" + create-hash "^1.1.3" + "@ledgerhq/hw-app-eth@^4.32.0": version "4.32.0" resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-4.32.0.tgz#7d43ca2c7952f1fb726e02c3b4485be10af481a2" @@ -1722,10 +1730,10 @@ dependencies: events "^3.0.0" -"@ledgerhq/ledger-core@2.0.0-rc.14": - version "2.0.0-rc.14" - resolved "https://registry.yarnpkg.com/@ledgerhq/ledger-core/-/ledger-core-2.0.0-rc.14.tgz#538b771e9d837ce1d26aabaa1dfe58a6b882e3cd" - integrity sha512-WIq6DyOoqtPPt+pS8K6NQ8EJD9GIn/VD1HLehWvJYqZhUf1IOIEIaOqxCnayHMQ/7b4c68xANgmKggUBdQ0M+A== +"@ledgerhq/ledger-core@2.0.0-rc.16": + version "2.0.0-rc.16" + resolved "https://registry.yarnpkg.com/@ledgerhq/ledger-core/-/ledger-core-2.0.0-rc.16.tgz#51f141c0143edb020e38855bf2e2619e3446e74f" + integrity sha512-gmbeXRBg4NSqzH6+EajYTzaQlwN5ugaN1nH0SI6BvRqMfcorxNRE8byfh3F2u+7TNchBW72vOZnKPDShaR9/pQ== dependencies: bindings "^1.3.0" nan "^2.6.2"