Browse Source

change remainderAddress to remainderOut

should use remainderOut in TransactionBuilder’s opts;
patch-2
xubo zhang 11 years ago
parent
commit
7a88c31164
  1. 2
      README.md
  2. 2
      examples/CreateAndSignTx-PayToPubkeyHash.js

2
README.md

@ -176,7 +176,7 @@ peerman.on('connect', function() {
var conn = peerman.getActiveConnection();
if (conn) {
var outs = [{address:toAddress, amount:amt}];
var opts = {remainderAddress: changeAddressString};
var opts = {remainderOut: {address: changeAddressString}};
var Builder = bitcore.TransactionBuilder;
var tx = new Builder(opts)

2
examples/CreateAndSignTx-PayToPubkeyHash.js

@ -25,7 +25,7 @@ var run = function() {
var outs = [{address:toAddress, amount:amt}];
var keys = [priv];
var opts = {remainderAddress: changeAddressString};
var opts = {remainderOut: {address: changeAddressString}};
var Builder = bitcore.TransactionBuilder;
var tx = new Builder(opts)

Loading…
Cancel
Save