Skip to content

Commit

Permalink
xcalloptions sync with revm expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
Brechtpd committed Sep 17, 2024
1 parent 5af74cc commit 034e3e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/contracts/gwyneth/EVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pragma solidity >=0.8.12 <0.9.0;
// EVM library
library EVM {
// precompile addresses
address constant xCallOptionsAddress = address(0x1100);
address constant xCallOptionsAddress = address(0x04D2);

uint constant l1ChainId = 1;
uint constant version = 1;
uint16 constant version = 1;

function xCallOnL1()
public
Expand Down Expand Up @@ -53,7 +53,7 @@ library EVM {
require(chainID != l1ChainId);

// Call the custom precompile
bytes memory input = abi.encodePacked(version, chainID, sandbox, txOrigin, msgSender, blockHash, proof);
bytes memory input = abi.encodePacked(version, uint64(chainID), sandbox, txOrigin, msgSender, blockHash, proof);
(bool success, ) = xCallOptionsAddress.staticcall(input);
require(success);
}
Expand Down

0 comments on commit 034e3e6

Please sign in to comment.