ECPair: rm duplicate throw
This commit is contained in:
parent
efacd387be
commit
d46035a35f
1 changed files with 0 additions and 2 deletions
|
@ -68,8 +68,6 @@ ECPair.fromWIF = function (string, network) {
|
||||||
network = network.filter(function (network) {
|
network = network.filter(function (network) {
|
||||||
return version === network.wif
|
return version === network.wif
|
||||||
}).pop() || {}
|
}).pop() || {}
|
||||||
|
|
||||||
if (version !== network.wif) throw new Error('Invalid network version')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var decoded = wif.decodeRaw(network.wif, buffer)
|
var decoded = wif.decodeRaw(network.wif, buffer)
|
||||||
|
|
Loading…
Reference in a new issue