Browse Source
Merge pull request #149 from loeck/master
Set coinType to BTC Testnet
master
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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 }) |
|
|
|
} |
|
|
|
|
|
|
|