Skip to content

Commit

Permalink
Fix Recovery event parameter values
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed May 14, 2020
1 parent e3c35ce commit 81b43ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/modules/RecoveryManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contract RecoveryManager is BaseModule, RelayerModule {
_wallet.setOwner(recoveryOwner);
guardianStorage.setLock(_wallet, 0);

emit RecoveryFinalized(address(_wallet), config.recovery);
emit RecoveryFinalized(address(_wallet), recoveryOwner);
}

/**
Expand All @@ -145,10 +145,11 @@ contract RecoveryManager is BaseModule, RelayerModule {
*/
function cancelRecovery(BaseWallet _wallet) external onlyExecute onlyWhenRecovery(_wallet) {
RecoveryConfig storage config = recoveryConfigs[address(_wallet)];
address recoveryOwner = config.recovery;
delete recoveryConfigs[address(_wallet)];
guardianStorage.setLock(_wallet, 0);

emit RecoveryCanceled(address(_wallet), config.recovery);
emit RecoveryCanceled(address(_wallet), recoveryOwner);
}

/**
Expand Down

0 comments on commit 81b43ee

Please sign in to comment.