Skip to content

Commit

Permalink
[CHAIN-56] emit event when upgrading WalletFactory (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyqs authored Oct 6, 2024
1 parent 8bc73fd commit b20599e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions smart-wallets/src/WalletFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ contract WalletFactory is Ownable {
/// @notice Address of the current SmartWallet implementation
ISmartWallet public smartWallet;

/**
* @notice Emitted when the SmartWallet implementation is upgraded
* @param smartWallet_ New SmartWallet implementation
*/
event Upgraded(ISmartWallet smartWallet_);

/**
* @notice Construct the WalletFactory
* @param owner_ Address of the owner of the WalletFactory
Expand All @@ -36,6 +42,7 @@ contract WalletFactory is Ownable {
*/
function upgrade(ISmartWallet smartWallet_) public onlyOwner {
smartWallet = smartWallet_;
emit Upgraded(smartWallet_);
}

}

0 comments on commit b20599e

Please sign in to comment.