Revert "try valid address check only if not paypro"
This reverts commit a0b5ab642e.
This commit is contained in:
parent
a25f9238c9
commit
3d27054441
1 changed files with 2 additions and 4 deletions
|
|
@ -133,9 +133,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
var B = data.stateParams.coin == 'bch' ? bitcoreCash : bitcore;
|
||||
var networkName;
|
||||
try {
|
||||
if (!data.stateParams.paypro) {
|
||||
networkName = (new B.Address(data.stateParams.toAddress)).network.name;
|
||||
}
|
||||
networkName = (new B.Address(data.stateParams.toAddress)).network.name;
|
||||
} catch(e) {
|
||||
var message = gettextCatalog.getString('Invalid address');
|
||||
var backText = gettextCatalog.getString('Go back');
|
||||
|
|
@ -250,7 +248,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
txp.message = tx.description;
|
||||
|
||||
if (tx.paypro) {
|
||||
txp.payProUrl = tx.paypro;
|
||||
txp.payProUrl = tx.paypro.url;
|
||||
}
|
||||
txp.excludeUnconfirmedUtxos = !tx.spendUnconfirmed;
|
||||
txp.dryRun = dryRun;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue