diff --git a/contracts/smart-wallet/TWAccountFactory.sol b/contracts/smart-wallet/TWAccountFactory.sol index 2e863da6c..e1ad285c3 100644 --- a/contracts/smart-wallet/TWAccountFactory.sol +++ b/contracts/smart-wallet/TWAccountFactory.sol @@ -36,7 +36,7 @@ contract TWAccountFactory is ITWAccountFactory, Multicall { TWAccount(payable(account)).initialize(_admin); - emit AccountCreated(account, _admin); + emit AccountCreated(account, _admin, _salt); return account; } diff --git a/contracts/smart-wallet/TWDynamicAccountFactory.sol b/contracts/smart-wallet/TWDynamicAccountFactory.sol index 39bdeb9d5..93c88ee83 100644 --- a/contracts/smart-wallet/TWDynamicAccountFactory.sol +++ b/contracts/smart-wallet/TWDynamicAccountFactory.sol @@ -36,7 +36,7 @@ contract TWDynamicAccountFactory is ITWAccountFactory, Multicall { TWAccount(payable(account)).initialize(_admin); - emit AccountCreated(account, _admin); + emit AccountCreated(account, _admin, _salt); return account; } diff --git a/contracts/smart-wallet/interfaces/ITWAccountFactory.sol b/contracts/smart-wallet/interfaces/ITWAccountFactory.sol index afb17248b..aa72ccf80 100644 --- a/contracts/smart-wallet/interfaces/ITWAccountFactory.sol +++ b/contracts/smart-wallet/interfaces/ITWAccountFactory.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.12; interface ITWAccountFactory { - event AccountCreated(address indexed account, address indexed accountAdmin); + event AccountCreated(address indexed account, address indexed accountAdmin, bytes32 indexed salt); /// @notice Returns the address of the Account implementation. function accountImplementation() external view returns (address);