Skip to content

Commit

Permalink
Make tests pass by making rebateClaimer() dynamically retrieve the …
Browse files Browse the repository at this point in the history
…deployer owner
  • Loading branch information
duncancmt committed Dec 16, 2024
1 parent 1c1dcf7 commit bf766aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chains/Mainnet/Common.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ abstract contract MainnetMixin is
{
constructor() {
assert(block.chainid == 1 || block.chainid == 31337);
rebateClaimer = IOwnable(DEPLOYER).owner();
}

function _dispatch(uint256 i, uint256 action, bytes calldata data)
Expand Down Expand Up @@ -142,5 +141,7 @@ abstract contract MainnetMixin is
return 0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963;
}

address public immutable rebateClaimer;
function rebateClaimer() external view returns (address) {
return IOwnable(DEPLOYER).owner();
}
}

0 comments on commit bf766aa

Please sign in to comment.