@@ -57,6 +57,7 @@ const isTest = process.env.IS_TEST === "true" || process.env.CI === "true";
5757const  compileZk  =  process . env . COMPILE_ZK  ===  "true" ; 
5858
5959const  solcVersion  =  "0.8.24" ; 
60+ const  evmVersion  =  "cancun" ; 
6061
6162// Compilation settings are overridden for large contracts to allow them to compile without going over the bytecode 
6263// limit. 
@@ -65,6 +66,7 @@ const LARGE_CONTRACT_COMPILER_SETTINGS = {
6566  settings : { 
6667    optimizer : {  enabled : true ,  runs : 800  } , 
6768    viaIR : true , 
69+     evmVersion, 
6870    debug : {  revertStrings : isTest  ? "debug"  : "strip"  } , 
6971  } , 
7072} ; 
@@ -73,6 +75,7 @@ const DEFAULT_CONTRACT_COMPILER_SETTINGS = {
7375  settings : { 
7476    optimizer : {  enabled : true ,  runs : 1000000  } , 
7577    viaIR : true , 
78+     evmVersion, 
7679    // Only strip revert strings if not testing or in ci. 
7780    debug : {  revertStrings : isTest  ? "debug"  : "strip"  } , 
7881  } , 
@@ -83,6 +86,7 @@ const LARGEST_CONTRACT_COMPILER_SETTINGS = {
8386  settings : { 
8487    optimizer : {  enabled : true ,  runs : 50  } , 
8588    viaIR : true , 
89+     evmVersion, 
8690    debug : {  revertStrings : isTest  ? "debug"  : "strip"  } , 
8791  } , 
8892} ; 
@@ -97,12 +101,23 @@ const config: HardhatUserConfig = {
97101        // NOTE: Linea only supports 0.8.19. 
98102        // See https://docs.linea.build/build-on-linea/ethereum-differences#evm-opcodes 
99103        version : "0.8.19" , 
104+         settings : { 
105+           optimizer : {  enabled : true ,  runs : 50  } , 
106+           viaIR : true , 
107+           debug : {  revertStrings : isTest  ? "debug"  : "strip"  } , 
108+         } , 
100109      } , 
101110      "contracts/SpokePoolVerifier.sol" : { 
102111        ...DEFAULT_CONTRACT_COMPILER_SETTINGS , 
103112        // NOTE: Linea only supports 0.8.19. 
104113        // See https://docs.linea.build/build-on-linea/ethereum-differences#evm-opcodes 
105114        version : "0.8.19" , 
115+         settings : { 
116+           optimizer : {  enabled : true ,  runs : 1000000  } , 
117+           viaIR : true , 
118+           // Only strip revert strings if not testing or in ci. 
119+           debug : {  revertStrings : isTest  ? "debug"  : "strip"  } , 
120+         } , 
106121      } , 
107122      "contracts/Universal_SpokePool.sol" : LARGE_CONTRACT_COMPILER_SETTINGS , 
108123      "contracts/Arbitrum_SpokePool.sol" : LARGE_CONTRACT_COMPILER_SETTINGS , 
0 commit comments