remove crypto hash transition code

This commit is contained in:
Kyle Drake 2014-05-24 13:45:52 +10:00
parent c17c6f9291
commit f545ed1279
3 changed files with 2 additions and 9 deletions

View file

@ -102,7 +102,7 @@ describe('Script', function() {
it('should create valid redeemScript', function() {
var redeemScript = Script.createMultisigScriptPubKey(2, pubKeys)
var hash160 = crypto.hash160(redeemScript.buffer)
var hash160 = crypto.hash160(new Buffer(redeemScript.buffer))
var multisigAddress = new Address(hash160, networks.bitcoin.scriptHash)
assert.equal(multisigAddress.toString(), '32vYjxBb7pHJJyXgNk8UoK3BdRDxBzny2v')