diff --git a/smart-wallets/src/WalletFactory.sol b/smart-wallets/src/WalletFactory.sol index e808ef4..e7d5927 100644 --- a/smart-wallets/src/WalletFactory.sol +++ b/smart-wallets/src/WalletFactory.sol @@ -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 @@ -36,6 +42,7 @@ contract WalletFactory is Ownable { */ function upgrade(ISmartWallet smartWallet_) public onlyOwner { smartWallet = smartWallet_; + emit Upgraded(smartWallet_); } }