Skip to content

Commit

Permalink
Temporarly disable order hardforks
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Apr 15, 2021
1 parent d8ee72f commit 9eb3d3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ You can set the following fields on the `hardhat` config:

- `blockGasLimit`: The block gas limit to use in Hardhat Network's blockchain. Default value: `12450000`

- `hardfork`: This setting changes how Hardhat Network works, to mimic Ethereum's mainnet at a given hardfork. It must be one of `"chainstart"`, `"homestead"`, `"dao"`, `"tangerineWhistle"`, `"spuriousDragon"`, `"byzantium"`, `"constantinople"`, `"petersburg"`, `"istanbul"`, `"muirGlacier"`, and `"berlin"`. Default value: `"berlin"`
- `hardfork`: This setting changes how Hardhat Network works, to mimic Ethereum's mainnet at a given hardfork. It must be one of `"byzantium"`, `"constantinople"`, `"petersburg"`, `"istanbul"`, `"muirGlacier"`, and `"berlin"`. Default value: `"berlin"`

- `throwOnTransactionFailures`: A boolean that controls if Hardhat Network throws on transaction failures.
If this value is `true`, Hardhat Network will throw [combined JavaScript and Soldity stack traces](../hardhat-network/README.md#solidity-stack-traces)
Expand Down
10 changes: 5 additions & 5 deletions packages/hardhat-core/src/internal/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export const HARDHAT_NETWORK_NAME = "hardhat";
export const SOLIDITY_FILES_CACHE_FILENAME = "solidity-files-cache.json";

export const HARDHAT_NETWORK_SUPPORTED_HARDFORKS = [
"chainstart",
"homestead",
"dao",
"tangerineWhistle",
"spuriousDragon",
// "chainstart",
// "homestead",
// "dao",
// "tangerineWhistle",
// "spuriousDragon",
"byzantium",
"constantinople",
"petersburg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ describe("Hardhat Network special options", function () {
useFixtureProject("hardhat-network-spurious-dragon");
useEnvironment();

it("should accept hardforks as late as chainstart and use them", async function () {
// We skip this test as we are temporally disabling older hardforks due
// to a bug in EthereumJS.
// TODO: Remove the skip once the DefaultStateManager is fixed
it.skip("should accept hardforks as late as chainstart and use them", async function () {
const [sender] = await this.env.network.provider.send("eth_accounts");
await assert.isRejected(
this.env.network.provider.send("eth_sendTransaction", [
Expand All @@ -112,7 +115,10 @@ describe("Hardhat Network special options", function () {
return;
}

describe("Local hardfork validation", function () {
// We skip this test as we are temporally disabling older hardforks due
// to a bug in EthereumJS.
// TODO: Remove the skip once the DefaultStateManager is fixed
describe.skip("Local hardfork validation", function () {
useFixtureProject("hardhat-network-fork-tangerine-whistle");
useEnvironment();

Expand Down

0 comments on commit 9eb3d3f

Please sign in to comment.