HDNode: add optional network flag to import functions
This commit is contained in:
parent
4fca3ac196
commit
311df7e406
4 changed files with 75 additions and 34 deletions
test
|
@ -25,7 +25,7 @@ describe('networks', function() {
|
|||
var extb58 = f.bip32[name]
|
||||
|
||||
it('resolves ' + extb58 + ' to ' + f.network, function() {
|
||||
assert.equal(HDNode.fromBase58(extb58).network, network)
|
||||
assert.equal(HDNode.fromBase58(extb58, network).network, network)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue