Skip to content

Commit

Permalink
Fix crosschain run function (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham authored Jun 20, 2024
1 parent fb3a28d commit 0950263
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AxiomVm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,11 @@ contract AxiomVm is Test {
cli[3] = compiledStrings[querySchema];
cli[4] = vm.toString(input);
cli[5] = vm.rpcUrl(urlOrAlias);
cli[6] = vm.toString(block.chainid);
if (!isCrosschain) {
cli[6] = vm.toString(block.chainid);
} else {
cli[6] = vm.toString(sourceChainId);
}
cli[7] = vm.toString(callbackTarget);
cli[8] = vm.toString(callbackExtraData);
cli[9] = vm.toString(msg.sender);
Expand Down

0 comments on commit 0950263

Please sign in to comment.