use safe-buffers throughout impl
This commit is contained in:
parent
342633d7c9
commit
aeb0312d63
11 changed files with 44 additions and 44 deletions
|
@ -515,7 +515,7 @@ TransactionBuilder.prototype.addInput = function (txHash, vout, sequence, prevOu
|
|||
// is it a hex string?
|
||||
if (typeof txHash === 'string') {
|
||||
// transaction hashs's are displayed in reverse order, un-reverse it
|
||||
txHash = new Buffer(txHash, 'hex').reverse()
|
||||
txHash = Buffer.from(txHash, 'hex').reverse()
|
||||
|
||||
// is it a Transaction object?
|
||||
} else if (txHash instanceof Transaction) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue