Removes pointless error utility function
This commit is contained in:
parent
9f74d1396b
commit
a4c2cc6dd4
2 changed files with 1 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
var base58 = require('./base58')
|
||||
var base58check = require('./base58check')
|
||||
var convert = require('./convert')
|
||||
var error = require('./util').error
|
||||
var mainnet = require('./network').mainnet.addressVersion
|
||||
|
||||
function Address(bytes, version) {
|
||||
|
@ -25,7 +24,7 @@ function Address(bytes, version) {
|
|||
this.version = version || mainnet
|
||||
}
|
||||
else {
|
||||
error('invalid or unrecognized input')
|
||||
throw new Error('Invalid or unrecognized input')
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -7,7 +7,3 @@ exports.sha256ripe160 = function (data) {
|
|||
var wordArray = RIPEMD160(SHA256(convert.bytesToWordArray(data)))
|
||||
return convert.wordArrayToBytes(wordArray)
|
||||
}
|
||||
|
||||
exports.error = function (msg) {
|
||||
throw new Error(msg)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue