remove unused params in example
This commit is contained in:
parent
54bbc42e7d
commit
a8f5f9fcb8
|
@ -41,10 +41,10 @@ var run = function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// multisig p2sh
|
// multisig p2sh
|
||||||
var opts = {nreq:3, pubkeys:pubkeys, amount:0.05};
|
var opts = {nreq:3, pubkeys:pubkeys};
|
||||||
|
|
||||||
// p2scriphash p2sh
|
// p2scriphash p2sh
|
||||||
//var opts = [{address: an_address, amount:0.05}];
|
//var opts = [{address: an_address}];
|
||||||
|
|
||||||
var info = Builder.infoForP2sh(opts, 'testnet');
|
var info = Builder.infoForP2sh(opts, 'testnet');
|
||||||
var p2shScript = info.scriptBufHex;
|
var p2shScript = info.scriptBufHex;
|
||||||
|
|
|
@ -563,7 +563,7 @@ describe('TransactionBuilder', function() {
|
||||||
};
|
};
|
||||||
var data = getInfoForP2sh();
|
var data = getInfoForP2sh();
|
||||||
// multisig p2sh
|
// multisig p2sh
|
||||||
var p2shOpts = {nreq:3, pubkeys:data.pubkeys, amount:0.05};
|
var p2shOpts = {nreq:3, pubkeys:data.pubkeys};
|
||||||
var info = TransactionBuilder.infoForP2sh(p2shOpts, network);
|
var info = TransactionBuilder.infoForP2sh(p2shOpts, network);
|
||||||
|
|
||||||
var outs = outs || [{
|
var outs = outs || [{
|
||||||
|
@ -644,7 +644,7 @@ describe('TransactionBuilder', function() {
|
||||||
remainderOut: {address: 'mwZabyZXg8JzUtFX1pkGygsMJjnuqiNhgd'},
|
remainderOut: {address: 'mwZabyZXg8JzUtFX1pkGygsMJjnuqiNhgd'},
|
||||||
};
|
};
|
||||||
// p2hash/ p2sh
|
// p2hash/ p2sh
|
||||||
var p2shOpts = {address:'mgwqzy6pF5BSc72vxHBFSnnhNEBcV4TJzV', amount:0.05};
|
var p2shOpts = {address:'mgwqzy6pF5BSc72vxHBFSnnhNEBcV4TJzV'};
|
||||||
var info = TransactionBuilder.infoForP2sh(p2shOpts, network);
|
var info = TransactionBuilder.infoForP2sh(p2shOpts, network);
|
||||||
|
|
||||||
//addr: 2NAwCQ1jPYPrSsyBQvfP6AJ6d6SSxnHsZ4e
|
//addr: 2NAwCQ1jPYPrSsyBQvfP6AJ6d6SSxnHsZ4e
|
||||||
|
|
Loading…
Reference in New Issue