Get protocol handler from walletService

This commit is contained in:
Gustavo Maximiliano Cortez 2017-09-09 19:42:48 -03:00
commit 779d21e9e9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 18 additions and 2 deletions

View file

@ -124,8 +124,13 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
return wallet;
}
var setProtocolHandler = function() {
$scope.protocolHandler = walletService.getProtocolHandler($scope.wallet);
}
$scope.onWalletSelect = function(wallet) {
$scope.wallet = wallet;
setProtocolHandler();
$scope.setAddress();
};