paypro: support user amount decision on 0-value-server-outputs.
This commit is contained in:
parent
f20836a24c
commit
d87697dfed
3 changed files with 39 additions and 1 deletions
|
|
@ -62,6 +62,13 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
var w = $rootScope.wallet;
|
||||
|
||||
function done(ntxid, merchantData) {
|
||||
if (merchantData && +merchantData.total === 0) {
|
||||
var txp = w.txProposals.txps[ntxid];
|
||||
txp.builder.tx.outs[0].v = bitcore.Bignum(amount + '', 10).toBuffer({
|
||||
endian: 'little',
|
||||
size: 1
|
||||
});
|
||||
}
|
||||
if (w.isShared()) {
|
||||
$scope.loading = false;
|
||||
var message = 'The transaction proposal has been created';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue