ECPair/HDNode: missing version from list is Unknown, not Invalid

This commit is contained in:
Daniel Cousens 2016-02-25 13:48:29 +11:00
parent bdb0dd4a17
commit aae5db6a59
4 changed files with 5 additions and 3 deletions

View file

@ -66,7 +66,7 @@ HDNode.fromBase58 = function (string, networks) {
version === network.bip32.public
}).pop()
if (!network) throw new Error('Invalid network version')
if (!network) throw new Error('Unknown network version')
// otherwise, assume a network object (or default to bitcoin)
} else {