Skip to content

Commit

Permalink
chore: more commits
Browse files Browse the repository at this point in the history
  • Loading branch information
excaliborr committed Nov 27, 2023
1 parent 8d0d1f9 commit fca92b4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions solidity/test/e2e/VerifierModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,23 @@ contract VerifierModuleE2E is CommonE2EBase {
assertEq(oracle.blockHeader(), _blockHeader, 'Block header should be saved');
assertEq(oracle.blockTimestamp(), _blockHeaderStruct.timestamp, 'Timestamp should be saved');

uint256 _searcherBalance = address(_searcher).balance;
uint256 _addressZeroBalance = address(0).balance;

vm.prank(_searcher);
verifierModule.extractStorageRootAndVerifyUpdate(
address(nonHomeChainSafe), _safeSettings, _accountProof, _storageProof, _txn
);

address[] memory _newOwners = nonHomeChainSafe.getOwners();

assertEq(_newOwners.length, 1, 'Owners should be 1');
assertEq(_newOwners[0], address(_deployer), 'Owner should be the deployer');
assertGt(address(_searcher).balance, _searcherBalance, 'Searcher should be rewarded');
assertGt(
address(0).balance,
_addressZeroBalance,
'Address zero should have more funds because we sent 1 wei the arbitrary txn'
);
}
}

0 comments on commit fca92b4

Please sign in to comment.