|
|
@ -903,9 +903,10 @@ WalletService.prototype.createTx = function(opts, cb) { |
|
|
|
|
|
|
|
var copayer = wallet.getCopayer(self.copayerId); |
|
|
|
var hash; |
|
|
|
if (!opts.type) { |
|
|
|
if (!opts.type || opts.type == Model.TxProposal.Types.SIMPLE) { |
|
|
|
hash = WalletUtils.getProposalHash(opts.toAddress, opts.amount, opts.message, opts.payProUrl); |
|
|
|
} else { |
|
|
|
// should match bwc api _computeProposalSignature
|
|
|
|
var header = { |
|
|
|
outputs: _.map(opts.outputs, function(output) { |
|
|
|
return _.pick(output, ['toAddress', 'amount', 'message']); |
|
|
|