package: bump bs58check, drop node 0.12

This commit is contained in:
Daniel Cousens 2016-12-21 12:52:09 +11:00 committed by Daniel Cousens
commit 14f9218389
8 changed files with 14 additions and 18 deletions

View file

@ -22,7 +22,7 @@ describe('Bitcoin-core', function () {
it('can decode ' + fb58, function () {
var buffer = base58.decode(fb58)
var actual = new Buffer(buffer).toString('hex')
var actual = buffer.toString('hex')
assert.strictEqual(actual, fhex)
})
@ -150,7 +150,7 @@ describe('Bitcoin-core', function () {
var input = inputs[i]
// reverse because test data is reversed
var prevOutHash = [].reverse.call(new Buffer(input[0], 'hex'))
var prevOutHash = new Buffer(input[0], 'hex').reverse()
var prevOutIndex = input[1]
assert.deepEqual(txIn.hash, prevOutHash)
@ -193,7 +193,7 @@ describe('Bitcoin-core', function () {
var hash = transaction.hashForSignature(inIndex, script, hashType)
// reverse because test data is reversed
assert.equal([].reverse.call(hash).toString('hex'), expectedHash)
assert.equal(hash.reverse().toString('hex'), expectedHash)
})
})
})