to address
This commit is contained in:
parent
28235011fd
commit
3721da05a5
1 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal, $log, $timeout, addressbookService, profileService, lodash, $state, walletService ) {
|
||||
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal, $log, $timeout, addressbookService, profileService, lodash, $state, walletService, bitcore ) {
|
||||
|
||||
var originalList;
|
||||
|
||||
|
|
@ -61,7 +61,11 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
|||
}
|
||||
} else if (/^https?:\/\//.test(search)) {
|
||||
return $state.go('send.confirm', {paypro: search})
|
||||
}
|
||||
} else if (bitcore.Address.isValid(search, 'livenet')) {
|
||||
return $state.go('send.amount', {toAddress: search})
|
||||
} else if (bitcore.Address.isValid(search, 'testnet')) {
|
||||
return $state.go('send.amount', {toAddress: search})
|
||||
}
|
||||
|
||||
if (!search || search.length < 2) {
|
||||
$scope.list = originalList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue