From 4e3cb6762b49101d485e56274a282a0571eba9cc Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 25 May 2014 09:55:56 +1000 Subject: [PATCH] fix for hash160 in integration test --- test/integration/p2sh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/p2sh.js b/test/integration/p2sh.js index 474dd9a..b3708ca 100644 --- a/test/integration/p2sh.js +++ b/test/integration/p2sh.js @@ -28,7 +28,7 @@ describe('p2sh', function() { return eck.pub }) 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.testnet.scriptHash) // Check what our target address's starting value is