Skip to content

Commit

Permalink
Merge pull request #4 from aboutcircles/20240607-event-erc20lift
Browse files Browse the repository at this point in the history
(erc20Lift): add event of deployed wrapper contract
  • Loading branch information
benjaminbollen authored Jun 10, 2024
2 parents 6a9b9c3 + e685bd7 commit 91e1d75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lift/ERC20Lift.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ contract ERC20Lift is ProxyFactory, IERC20Lift, ICirclesErrors {

mapping(CirclesType => mapping(address => address)) public erc20Circles;

// Events

event ERC20WrapperDeployed(address indexed avatar, address indexed erc20Wrapper, CirclesType circlesType);

// Constructor

constructor(
Expand Down Expand Up @@ -83,6 +87,8 @@ contract ERC20Lift is ProxyFactory, IERC20Lift, ICirclesErrors {
if (erc20Wrapper == address(0)) {
erc20Wrapper = _deployERC20(masterCopyERC20Wrapper[uint256(_circlesType)], _avatar);
erc20Circles[_circlesType][_avatar] = erc20Wrapper;

emit ERC20WrapperDeployed(_avatar, erc20Wrapper, _circlesType);
}
return erc20Wrapper;
}
Expand Down

0 comments on commit 91e1d75

Please sign in to comment.