Fix priority normal for bch transactions

This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-28 18:01:07 -03:00
commit db04a31a06
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 23 additions and 13 deletions

View file

@ -119,6 +119,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
});
};
// TODO: Default fee level for BCH
if (data.stateParams.coin == 'bch') {
configFeeLevel = 'normal';
}
// Setup $scope
// Grab stateParams
@ -142,13 +147,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
txp: {},
};
// Other Scope vars
$scope.isCordova = isCordova;
$scope.isWindowsPhoneApp = isWindowsPhoneApp;
$scope.showAddress = false;
$scope.walletSelectorTitle = gettextCatalog.getString('Send from');
setWalletSelector(tx.coin, tx.network, tx.toAmount, function(err) {
@ -563,6 +566,8 @@ angular.module('copayApp.controllers').controller('confirmController', function(
$scope.chooseFeeLevel = function(tx, wallet) {
if (wallet.coin == 'bch') return;
var scope = $rootScope.$new(true);
scope.network = tx.network;
scope.feeLevel = tx.feeLevel;