use safe-buffers throughout impl

This commit is contained in:
Daniel Cousens 2017-04-19 17:24:58 +10:00 committed by Daniel Cousens
parent 342633d7c9
commit aeb0312d63
11 changed files with 44 additions and 44 deletions

View file

@ -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) {