Browse Source

Merge pull request #149 from loeck/master

Set coinType to BTC Testnet
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
8e7023847b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/internals/usb/wallet/index.js

4
src/internals/usb/wallet/index.js

@ -7,8 +7,8 @@ import getAllAccounts, { verifyAddress } from './accounts'
async function getAllAccountsByCoinType({ pathDevice, coinType, currentAccounts, onProgress }) {
const transport = await CommNodeHid.open(pathDevice)
// 0: BTC
if (coinType === 0) {
// 1: BTC Testnet
if (coinType === 1) {
return getAllAccounts({ transport, currentAccounts, onProgress })
}

Loading…
Cancel
Save