Skip to content

Commit

Permalink
TOB-GARDEN-2 resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
r4reetik committed Mar 13, 2024
1 parent 16eb2a9 commit 7078acf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions contracts/fee/GardenFEEAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ contract GardenFEEAccount is EIP712Upgradeable {

uint256 private constant TWO_DAYS = 2 * 7200;

function initialize() external {
_disableInitializers();
}

function __GardenFEEAccount_init(
IERC20Upgradeable token_,
address funder_,
Expand Down
8 changes: 6 additions & 2 deletions contracts/fee/GardenFEEAccountFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ contract GardenFEEAccountFactory {
) {
token = token_;
feeManager = feeManager_;
template = address(new GardenFEEAccount());

feeAccountName = feeAccountName_;
feeAccountVersion = feeAccountVersion_;

GardenFEEAccount templateFeeAccount = new GardenFEEAccount();
templateFeeAccount.initialize();
template = address(templateFeeAccount);
}

/**
Expand Down Expand Up @@ -107,7 +111,7 @@ contract GardenFEEAccountFactory {
delete channels[recipient];
}

/**
/**
* @notice Creates a fee channel.
* @dev The fee channel is created by deploying a clone using the template.
* This function is only callable by the fee manager.
Expand Down

0 comments on commit 7078acf

Please sign in to comment.