From 034e3e6df4e1ca34a7ea78e696b214fe6deede5d Mon Sep 17 00:00:00 2001 From: brechtpd Date: Wed, 18 Sep 2024 04:11:43 +0900 Subject: [PATCH] xcalloptions sync with revm expectation --- packages/protocol/contracts/gwyneth/EVM.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/protocol/contracts/gwyneth/EVM.sol b/packages/protocol/contracts/gwyneth/EVM.sol index b77a3e6137d8..f879dff6f4a6 100644 --- a/packages/protocol/contracts/gwyneth/EVM.sol +++ b/packages/protocol/contracts/gwyneth/EVM.sol @@ -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 @@ -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); }