Wallet: clarify getPrivateKeyForAddress method structure

This does repeat the O(n) lookup several times, but that can be fixed by
using an O(1) lookup instead (and will be later).

Clarity first.
This commit is contained in:
Daniel Cousens 2014-08-13 13:56:17 +10:00
parent abc3e6c715
commit 7c22067f69
2 changed files with 11 additions and 6 deletions

View file

@ -164,7 +164,7 @@ describe('Wallet', function() {
var wallet = new Wallet(seed, networks.testnet)
assert.throws(function() {
wallet.getPrivateKeyForAddress("n2fiWrHqD6GM5GiEqkbWAc6aaZQp3ba93X")
}, /Unknown address. Make sure the address is from the keychain and has been generated./)
}, /Unknown address. Make sure the address is from the keychain and has been generated/)
})
})