Skip to content

Commit

Permalink
Set hardforkHistory to cancun from genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Oct 17, 2024
1 parent 27382c5 commit 7f11f92
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 28 deletions.
23 changes: 15 additions & 8 deletions hardhat.arbitrum.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 42161,
forking: {
url: process.env.ARBITRUM_ALCHEMY_API,
},
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 42161,
forking: {
url: process.env.ARBITRUM_ALCHEMY_API,
},
chains: {
42161: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
},
}
23 changes: 15 additions & 8 deletions hardhat.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 8453,
forking: {
url: process.env.BASE_ALCHEMY_API,
},
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 8453,
forking: {
url: process.env.BASE_ALCHEMY_API,
},
chains: {
8453: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
},
}
31 changes: 19 additions & 12 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.17',
settings: {
evmVersion: 'cancun',
solidity: {
version: '0.8.17',
settings: {
evmVersion: 'cancun',
},
},
},
networks: {
hardhat: {
chainId: 1,
forking: {
url: process.env.MAINNET_ALCHEMY_API,
},
networks: {
hardhat: {
chainId: 1,
forking: {
url: process.env.MAINNET_ALCHEMY_API,
},
chains: {
1: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
},
}

0 comments on commit 7f11f92

Please sign in to comment.