address: throw Invalid address instead of hash/version for fromBase58Check
This commit is contained in:
parent
20a17cc915
commit
1a4000cc98
3 changed files with 13 additions and 10 deletions
test
|
@ -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)/)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue