From 8063979d99f37bbfeca2f1935ec8c42b7c774cbe Mon Sep 17 00:00:00 2001 From: Wei Lu Date: Tue, 13 May 2014 22:01:40 +0800 Subject: [PATCH] fix integration test --- test/integration/p2sh.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/p2sh.js b/test/integration/p2sh.js index bb433a7..72c3f75 100644 --- a/test/integration/p2sh.js +++ b/test/integration/p2sh.js @@ -30,7 +30,7 @@ describe('p2sh', function() { var pubKeyBuffers = pubKeys.map(function(q) { return q.toBuffer() }) - var redeemScript = Script.createMultisigOutputScript(2, pubKeyBuffers) + var redeemScript = Script.createMultisigScriptPubKey(2, pubKeyBuffers) var hash160 = crypto.hash160(redeemScript.buffer) var multisigAddress = new Address(hash160, networks.testnet.scriptHash) @@ -57,7 +57,8 @@ describe('p2sh', function() { return tx.signScriptSig(0, redeemScript, privKey) }) - var scriptSig = Script.createP2SHMultisigScriptSig(signatures, redeemScript) + var redeemScriptSig = Script.createMultisigScriptSig(signatures) + var scriptSig = Script.createP2SHScriptSig(redeemScriptSig, redeemScript) tx.setScriptSig(0, scriptSig) // Send from mutlsigAddress to targetAddress