Skip to content

Hardfork

Hardfork: "chainstart" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "arrowGlacier" | "grayGlacier" | "mergeForkIdTransition" | "paris" | "shanghai" | "cancun" | "prague" | "osaka"

Ethereum hardfork options. Default option is currently cancun. If you use older hardforks you might run into issues with EIPs not being supported.

Example

import { createCommon, mainnet } from 'tevm/common'`
const hardfork: Hardfork = 'shanghai'
const common = createCommon({
...mainnet,
hardfork,
})

See

createCommon

Defined in

packages/common/src/Hardfork.ts:17