change remainderAddress to remainderOut
should use remainderOut in TransactionBuilder’s opts;
This commit is contained in:
parent
8c5dd597f0
commit
7a88c31164
|
@ -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)
|
||||
|
|
|
@ -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…
Reference in New Issue