Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee committed Jan 8, 2025
1 parent 470ee55 commit 8e3f271
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script/verification/SystemConfigUpgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e3f271

Please sign in to comment.