From 326cda63c0f46bfa189182ea2a691496c94295d2 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 28 May 2014 12:13:41 +1000 Subject: [PATCH] integration: use Script.getHash --- test/integration/p2sh.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/p2sh.js b/test/integration/p2sh.js index 4db20af..f351d62 100644 --- a/test/integration/p2sh.js +++ b/test/integration/p2sh.js @@ -30,8 +30,7 @@ describe('Bitcoin-js', function() { var pubKeys = privKeys.map(function(eck) { return eck.pub }) var redeemScript = Script.createMultisigScriptPubKey(2, pubKeys) - var hash160 = crypto.hash160(new Buffer(redeemScript.buffer)) - var multisigAddress = new Address(hash160, networks.testnet.scriptHash).toString() + var multisigAddress = new Address(redeemScript.getHash(), networks.testnet.scriptHash).toString() // Send some testnet coins to the multisig address to ensure it has some unspents for later helloblock.faucet.withdraw(multisigAddress, coldAmount, function(err) {