Skip to content

Commit 3cf0685

Browse files
committed
feat: remove hardfork default based on enableTransientStorage
1 parent 31a9db6 commit 3cf0685

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

packages/hardhat-core/src/internal/core/config/config-resolution.ts

-13
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,6 @@ function resolveHardhatNetworkConfig(
238238
delete config.initialBaseFeePerGas;
239239
}
240240

241-
if (
242-
hardhatNetworkConfig.enableTransientStorage === true &&
243-
hardhatNetworkConfig.hardfork === undefined
244-
) {
245-
config.hardfork = "cancun";
246-
}
247-
if (
248-
hardhatNetworkConfig.enableTransientStorage === false &&
249-
hardhatNetworkConfig.hardfork === undefined
250-
) {
251-
config.hardfork = "shanghai";
252-
}
253-
254241
return config;
255242
}
256243

packages/hardhat-core/test/internal/core/config/config-resolution.ts

-24
Original file line numberDiff line numberDiff line change
@@ -761,30 +761,6 @@ describe("Config resolution", () => {
761761
});
762762
});
763763
});
764-
765-
it("should use cancun as the hardfork when enableTransientStorage is set", async function () {
766-
const config = resolveConfig(__filename, {
767-
networks: {
768-
hardhat: {
769-
enableTransientStorage: true,
770-
},
771-
},
772-
});
773-
774-
assert.equal(config.networks.hardhat.hardfork, "cancun");
775-
});
776-
777-
it("should use shanghai as the hardfork when enableTransientStorage is disabled", async function () {
778-
const config = resolveConfig(__filename, {
779-
networks: {
780-
hardhat: {
781-
enableTransientStorage: false,
782-
},
783-
},
784-
});
785-
786-
assert.equal(config.networks.hardhat.hardfork, "shanghai");
787-
});
788764
});
789765

790766
describe("HTTP networks resolution", function () {

0 commit comments

Comments
 (0)