Skip to content

Commit

Permalink
paypro: example - sign customer transaction after output scripts are …
Browse files Browse the repository at this point in the history
…altered.
  • Loading branch information
chjj committed Aug 20, 2014
1 parent 095699a commit 471378b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/PayPro/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ function createTX(outputs) {

var b = new bitcore.TransactionBuilder(opts)
.setUnspent(unspent)
.setOutputs(outs)
.sign(keys);
.setOutputs(outs);

outputs.forEach(function(output, i) {
var script = {
Expand All @@ -396,6 +395,8 @@ function createTX(outputs) {
b.tx.outs[i].s = s;
});

b = b.sign(keys);

var tx = b.build();

print('');
Expand Down

0 comments on commit 471378b

Please sign in to comment.