Commit 31a9db6 1 parent 0c8720f commit 31a9db6 Copy full SHA for 31a9db6
File tree 1 file changed +7
-2
lines changed
packages/hardhat-core/src/internal/hardhat-network/provider/utils
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ export function ethereumsjsHardforkToEdrSpecId(hardfork: HardforkName): SpecId {
61
61
return SpecId . Shanghai ;
62
62
case HardforkName . CANCUN :
63
63
return SpecId . Cancun ;
64
+ case HardforkName . PRAGUE :
65
+ // TODO: update the value when Prague is added to EDR
66
+ return SpecId . Cancun ;
64
67
default :
65
68
const _exhaustiveCheck : never = hardfork ;
66
69
throw new Error (
@@ -107,9 +110,11 @@ export function edrSpecIdToEthereumHardfork(specId: SpecId): HardforkName {
107
110
return HardforkName . MERGE ;
108
111
case SpecId . Shanghai :
109
112
return HardforkName . SHANGHAI ;
110
- // HACK: EthereumJS doesn't support Cancun, so report Shanghai
111
113
case SpecId . Cancun :
112
- return HardforkName . SHANGHAI ;
114
+ return HardforkName . CANCUN ;
115
+ // TODO: uncomment when Prague is added to EDR
116
+ /* case SpecId.Prague:
117
+ return HardforkName.PRAGUE; */
113
118
114
119
default :
115
120
throw new Error ( `Unknown spec id '${ specId } ', this shouldn't happen` ) ;
You can’t perform that action at this time.
0 commit comments