mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #8105 from cmgustavo/bug/fix-top-up-02
Fix check paypro for bch top-up
This commit is contained in:
commit
6da3b1025f
|
@ -264,6 +264,7 @@ export class BitPayCardTopUpPage {
|
||||||
if (wallet.coin && wallet.coin == 'bch') {
|
if (wallet.coin && wallet.coin == 'bch') {
|
||||||
// Use legacy address
|
// Use legacy address
|
||||||
txp.toAddress = this.bitcoreCash.Address(txp.toAddress).toString();
|
txp.toAddress = this.bitcoreCash.Address(txp.toAddress).toString();
|
||||||
|
txp.outputs[0].toAddress = txp.toAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.walletProvider.createTx(wallet, txp).then((ctxp: any) => {
|
this.walletProvider.createTx(wallet, txp).then((ctxp: any) => {
|
||||||
|
|
Loading…
Reference in New Issue