fix: do not remove scripts from outputs

This commit is contained in:
Kosta Korenkov 2016-04-11 10:04:47 +03:00
parent 1168824f7f
commit 0d9dc85030
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ TxProposal.create = function(opts) {
x.payProUrl = opts.payProUrl; x.payProUrl = opts.payProUrl;
x.changeAddress = opts.changeAddress; x.changeAddress = opts.changeAddress;
x.outputs = _.map(opts.outputs, function(output) { x.outputs = _.map(opts.outputs, function(output) {
return _.pick(output, ['amount', 'toAddress', 'message']); return _.pick(output, ['amount', 'toAddress', 'message', 'script']);
}); });
x.outputOrder = _.shuffle(_.range(x.outputs.length + 1)); x.outputOrder = _.shuffle(_.range(x.outputs.length + 1));
x.walletM = opts.walletM; x.walletM = opts.walletM;