Browse Source

proposals with explicit type = simple need legacy header

activeAddress
Gregg Zigler 10 years ago
parent
commit
3df035c5d9
  1. 3
      lib/server.js

3
lib/server.js

@ -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']);

Loading…
Cancel
Save