address: throw Invalid address instead of hash/version for fromBase58Check

This commit is contained in:
Daniel Cousens 2015-07-21 12:29:35 +10:00
parent 20a17cc915
commit 1a4000cc98
3 changed files with 13 additions and 10 deletions

View file

@ -89,7 +89,7 @@ describe('Bitcoin-core', function () {
var address = Address.fromBase58Check(string)
assert.notEqual(allowedNetworks.indexOf(address.version), -1, 'Invalid network')
}, /Invalid (checksum|hash length|network)/)
}, /Invalid (checksum|address length|network)/)
})
})
})