ECPair: rm duplicate throw

This commit is contained in:
Daniel Cousens 2015-08-24 01:00:51 +10:00
parent efacd387be
commit d46035a35f

View file

@ -68,8 +68,6 @@ ECPair.fromWIF = function (string, network) {
network = network.filter(function (network) {
return version === network.wif
}).pop() || {}
if (version !== network.wif) throw new Error('Invalid network version')
}
var decoded = wif.decodeRaw(network.wif, buffer)