HDNode: add optional network flag to import functions

This commit is contained in:
Daniel Cousens 2014-11-29 12:04:02 +11:00
parent 4fca3ac196
commit 311df7e406
4 changed files with 75 additions and 34 deletions

View file

@ -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)
})
})
})