From 7a88c3116471bb3a539105c8aa83b806ab49eba4 Mon Sep 17 00:00:00 2001 From: xubo zhang Date: Fri, 11 Apr 2014 18:23:06 +0800 Subject: [PATCH] change remainderAddress to remainderOut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit should use remainderOut in TransactionBuilder’s opts; --- README.md | 2 +- examples/CreateAndSignTx-PayToPubkeyHash.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1cd568f..3c71e03 100644 --- a/README.md +++ b/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) diff --git a/examples/CreateAndSignTx-PayToPubkeyHash.js b/examples/CreateAndSignTx-PayToPubkeyHash.js index 1c2273e..4d703ce 100644 --- a/examples/CreateAndSignTx-PayToPubkeyHash.js +++ b/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)