Skip to content

Commit d80422b

Browse files
committed
revert strings
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
1 parent f44c5d3 commit d80422b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hardhat.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const solcVersion = "0.8.30";
8181

8282
// Hardhat 2.14.0 doesn't support prague yet, so we use paris instead (need to upgrade to v3 to use prague)
8383
const evmVersion = isTest ? "paris" : "prague";
84+
const revertStrings = isTest || process.env.CI === "true" ? "debug" : "strip";
8485

8586
// Compilation settings are overridden for large contracts to allow them to compile without going over the bytecode
8687
// limit.
@@ -90,7 +91,7 @@ const LARGE_CONTRACT_COMPILER_SETTINGS = {
9091
optimizer: { enabled: true, runs: 800 },
9192
viaIR: true,
9293
evmVersion,
93-
debug: { revertStrings: isTest ? "debug" : "strip" },
94+
debug: { revertStrings },
9495
},
9596
};
9697
const DEFAULT_CONTRACT_COMPILER_SETTINGS = {
@@ -100,7 +101,7 @@ const DEFAULT_CONTRACT_COMPILER_SETTINGS = {
100101
viaIR: true,
101102
evmVersion,
102103
// Only strip revert strings if not testing or in ci.
103-
debug: { revertStrings: isTest ? "debug" : "strip" },
104+
debug: { revertStrings },
104105
},
105106
};
106107
// This is only used by Blast_SpokePool for now, as it's the largest bytecode-wise
@@ -110,7 +111,7 @@ const LARGEST_CONTRACT_COMPILER_SETTINGS = {
110111
optimizer: { enabled: true, runs: 50 },
111112
viaIR: true,
112113
evmVersion,
113-
debug: { revertStrings: isTest ? "debug" : "strip" },
114+
debug: { revertStrings },
114115
},
115116
};
116117

0 commit comments

Comments
 (0)