From bd9fdf885f5d3d12858ee6c034e2ff0bf2d0e1dd Mon Sep 17 00:00:00 2001 From: Xi Lin Date: Fri, 23 Jun 2023 02:14:04 +0800 Subject: [PATCH] fix(contracts): change type of layer2ChainId to uint64 (#591) --- contracts/src/L1/rollup/ScrollChain.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/L1/rollup/ScrollChain.sol b/contracts/src/L1/rollup/ScrollChain.sol index 5e6de0442..46b75c4f7 100644 --- a/contracts/src/L1/rollup/ScrollChain.sol +++ b/contracts/src/L1/rollup/ScrollChain.sol @@ -45,7 +45,7 @@ contract ScrollChain is OwnableUpgradeable, IScrollChain { *************/ /// @notice The chain id of the corresponding layer 2 chain. - uint32 public immutable layer2ChainId; + uint64 public immutable layer2ChainId; /************* * Variables * @@ -97,7 +97,7 @@ contract ScrollChain is OwnableUpgradeable, IScrollChain { * Constructor * ***************/ - constructor(uint32 _chainId) { + constructor(uint64 _chainId) { layer2ChainId = _chainId; }