Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
feat(MEW): sweep success event
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Feb 13, 2018
1 parent ca932f9 commit 2de3f49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/controllers/ethMewSweepController.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ angular
.module('walletApp')
.controller('EthMewSweepController', EthMewSweepController);

function EthMewSweepController ($q, $scope, Alerts, Ethereum, AngularHelper, Upload) {
function EthMewSweepController ($q, $scope, Alerts, Ethereum, AngularHelper, Upload, Wallet) {
let reader = new FileReader();
AngularHelper.installLock.call($scope);
$scope.form = {};
Expand Down Expand Up @@ -37,6 +37,7 @@ function EthMewSweepController ($q, $scope, Alerts, Ethereum, AngularHelper, Upl
$scope.payment.sign(privateKey);
return $scope.payment.publish().then(() => {
$scope.$dismiss();
Wallet.api.incrementEventStat('mew_sweep_success');
Alerts.displaySentBitcoin('ETHER_SEND_SUCCESS_MEW');
}).catch((e) => {
$scope.free();
Expand Down

0 comments on commit 2de3f49

Please sign in to comment.