Skip to content

Commit

Permalink
add initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzia551 committed Aug 14, 2024
1 parent 0ecfd37 commit b651f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/periphery/contracts/static-a-token/StataMerger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract StataMerger is
address newAToken,
string calldata staticATokenName,
string calldata staticATokenSymbol
) external {
) external initializer {
__ERC20_init(staticATokenName, staticATokenSymbol);
__ERC20Permit_init(staticATokenName);
__ERC20AaveLM_init(newAToken);
Expand Down
4 changes: 2 additions & 2 deletions tests/periphery/static-a-token/Stata4626LM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ contract Stata4626LMTest is BaseTest {
assertEq(staticATokenLM.name(), 'Static Aave Local WETH');
assertEq(staticATokenLM.symbol(), 'stataLocWETH');

IERC20 aToken = staticATokenLM.aToken();
assertEq(address(aToken), A_TOKEN);
address referenceAsset = staticATokenLM.getReferenceAsset();
assertEq(referenceAsset, A_TOKEN);

address underlyingAddress = address(staticATokenLM.asset());
assertEq(underlyingAddress, UNDERLYING);
Expand Down

0 comments on commit b651f7f

Please sign in to comment.