From 8e3f2711e0f75ca3a392f466e9d80aa7e81e332e Mon Sep 17 00:00:00 2001 From: geoknee Date: Wed, 8 Jan 2025 21:22:31 +0000 Subject: [PATCH] comments --- script/verification/SystemConfigUpgrade.s.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/verification/SystemConfigUpgrade.s.sol b/script/verification/SystemConfigUpgrade.s.sol index f65d5204..c1bb5535 100644 --- a/script/verification/SystemConfigUpgrade.s.sol +++ b/script/verification/SystemConfigUpgrade.s.sol @@ -55,20 +55,20 @@ contract SystemConfigUpgrade is SuperchainRegistry { function getSysCfgVars() internal view returns (SysCfgVars memory) { ISystemConfig sysCfg = ISystemConfig(proxies.SystemConfig); - // gasPayingToken is not available on superchainconfig 1.12.0 and 2.2.0 - // the only supported versions to upgrade _from_. - // Since all supported chains are therefore non CGT chains - // we hardcode this: + // Depending on the version of the SystemConfig contract, + // certain variables may not be present address gasPayingToken; address disputeGameFactory; - if (sysCfg.version().eq("2.3.0")) { + // Target Version disputeGameFactory = sysCfg.disputeGameFactory(); (gasPayingToken,) = sysCfg.gasPayingToken(); } else if (sysCfg.version().eq("2.2.0")) { + // Supported initial version disputeGameFactory = sysCfg.disputeGameFactory(); gasPayingToken = address(0); } else if (sysCfg.version().eq("1.12.0")) { + // Supported initial version disputeGameFactory = address(0); gasPayingToken = address(0); } else {