Skip to content

Commit

Permalink
fix: assume called address != tx.origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrq committed May 1, 2024
1 parent 8d0bfb1 commit c20a149
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/adapters/HyperLaneAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ contract HyperLaneAdapterTest is BaseAdapterTest {
uint256 baseGasLimit,
uint256 originChainId
) {
vm.assume(crossChainController != tx.origin); // zkVM doesn't support mocking tx.origin
vm.assume(mailBox > address(65536));
vm.assume(originForwarder > address(65536));
vm.assume(crossChainController > address(65536));
Expand Down
1 change: 1 addition & 0 deletions tests/adapters/LayerZeroAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ contract LayerZeroAdapterTest is BaseAdapterTest {
uint256 baseGasLimit,
uint256 originChainId
) {
vm.assume(crossChainController != tx.origin); // zkVM doesn't support mocking tx.origin
vm.assume(lzEndpoint > address(65536));
vm.assume(originForwarder > address(65536));
vm.assume(crossChainController > address(65536));
Expand Down
1 change: 1 addition & 0 deletions tests/adapters/WormholeAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ contract WormholeAdapterTest is BaseAdapterTest {
uint256 baseGasLimit,
uint256 originChainId
) {
vm.assume(crossChainController != tx.origin); // zkVM doesn't support mocking tx.origin
vm.assume(crossChainController > address(65536));
vm.assume(wormholeRelayer > address(65536));
vm.assume(originForwarder > address(65536));
Expand Down
1 change: 1 addition & 0 deletions tests/adapters/ZkSyncAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ contract ZkSyncAdapterTest is BaseAdapterTest {
uint256 baseGasLimit,
uint256 originChainId
) {
vm.assume(crossChainController != tx.origin); // zkVM doesn't support mocking tx.origin
vm.assume(crossChainController > address(65536));
vm.assume(mailBox > address(65536));
vm.assume(originForwarder > address(65536));
Expand Down

0 comments on commit c20a149

Please sign in to comment.