Show pasted address instead of always cashaddr format on bch

This commit is contained in:
Sebastiaan Pasma 2018-08-14 15:53:18 +02:00
commit 99d8de02da
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
6 changed files with 19 additions and 9 deletions

View file

@ -11,7 +11,7 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
root.redir = function(data, serviceId, serviceData) {
var originalAddress = null;
var noPrefixInAddress = 0;
if (data.toLowerCase().indexOf('bitcoin') < 0) {
noPrefixInAddress = 1;
}
@ -83,7 +83,7 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
// Timeout is required to enable the "Back" button
$timeout(function() {
var params = sendFlowService.getStateClone();
if (amount) {
params.amount = amount;
}
@ -390,6 +390,7 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
$timeout(function() {
var stateParams = {
toAddress: toAddress,
displayAddress: toAddress,
coin: coin,
noPrefix: 1
};

View file

@ -13,6 +13,7 @@ angular
// even other properties added that this service does not know about. (such as "coin")
state: {
amount: '',
displayAddress: null,
fromWalletId: '',
sendMax: false,
thirdParty: null,
@ -42,6 +43,7 @@ angular
console.log("sendFlow clearCurrent()");
service.state = {
amount: '',
displayAddress: null,
fromWalletId: '',
sendMax: false,
thirdParty: null,