Skip to content

Commit 2853b77

Browse files
author
Alex
committed
fix: add view mutability to non-state-mutating test functions
- Mark testGenesisOwnerIsCouncilMultisig() and testGenesisStartsWithNoBalanceOrPayments() as view to resolve compiler warnings (Function state mutability can be restricted to view) - All 8 genesis_cutover tests pass with no warnings
1 parent d8bf806 commit 2853b77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/genesis_cutover.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ contract AgentEscrowGenesisCutoverTest is Test {
3636
assertEq(CANDIDATE_GENESIS_ADDRESS, address(0x000000000000000000000000000000000000A002));
3737
}
3838

39-
function testGenesisOwnerIsCouncilMultisig() public {
39+
function testGenesisOwnerIsCouncilMultisig() public view {
4040
assertEq(genesisEscrow.owner(), council);
4141
}
4242

43-
function testGenesisStartsWithNoBalanceOrPayments() public {
43+
function testGenesisStartsWithNoBalanceOrPayments() public view {
4444
assertEq(address(genesisEscrow).balance, 0);
4545
assertEq(genesisEscrow.chainId(), MAINNET_CHAIN_ID);
4646
assertEq(address(genesisEscrow.oracleAggregator()), address(0));

0 commit comments

Comments
 (0)