changed cashaddr date to the 15th of january

This commit is contained in:
Kadir Sekha 2018-01-11 12:59:37 +09:00
commit 81b808f369
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService) {
var listeners = [];
var cashaddrDate = new Date(2018, 0, 16);
var cashaddrDate = new Date(2018, 0, 15);
var currentDate = new Date();
$scope.bchAddressType = currentDate >= cashaddrDate ? 'cashaddr' : 'legacy';
var bchAddresses = {};

View file

@ -118,7 +118,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
$scope.btx = txFormatService.processTx($scope.wallet.coin, tx);
var cashaddrDate = new Date(2018, 0, 16);
var cashaddrDate = new Date(2018, 0, 15);
var txDate = new Date(($scope.btx.createdOn || $scope.btx.time) * 1000);
if ($scope.wallet.coin == 'bch' && txDate >= cashaddrDate) {