You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `'enableTransientStorage' is not supported for hardforks before 'cancun'. Please use a hardfork from 'cancun' onwards to enable this feature.`,
236
+
message:
237
+
"minGasPrice is not valid for networks with EIP-1559. Try an older hardfork or remove it.",
259
238
});
260
239
}
261
-
if(
262
-
hardforkGte(hardfork,HardforkName.CANCUN)&&
263
-
enableTransientStorage===false
264
-
){
240
+
}else{
241
+
if(initialBaseFeePerGas!==undefined){
265
242
ctx.addIssue({
266
243
code: z.ZodIssueCode.custom,
267
-
message: `'enableTransientStorage' must be enabled for hardforks 'cancun' or later. To disable this feature, use a hardfork before 'cancun'.`,
244
+
message:
245
+
"initialBaseFeePerGas is only valid for networks with EIP-1559. Try a newer hardfork or remove it.",
268
246
});
269
247
}
270
248
}
271
-
});
249
+
250
+
if(
251
+
!hardforkGte(hardfork,HardforkName.CANCUN)&&
252
+
enableTransientStorage===true
253
+
){
254
+
ctx.addIssue({
255
+
code: z.ZodIssueCode.custom,
256
+
message: `'enableTransientStorage' is not supported for hardforks before 'cancun'. Please use a hardfork from 'cancun' onwards to enable this feature.`,
257
+
});
258
+
}
259
+
if(
260
+
hardforkGte(hardfork,HardforkName.CANCUN)&&
261
+
enableTransientStorage===false
262
+
){
263
+
ctx.addIssue({
264
+
code: z.ZodIssueCode.custom,
265
+
message: `'enableTransientStorage' must be enabled for hardforks 'cancun' or later. To disable this feature, use a hardfork before 'cancun'.`,
266
+
});
267
+
}
268
+
}
269
+
}
270
+
271
+
// The superRefine is used to perform additional validation of correlated
272
+
// fields of the edr network that are not possible to express with Zod's
273
+
// built-in validation methods.
274
+
// Ideally, it should be applied to the edrNetworkUserConfigSchema, but it
275
+
// returns a ZodEffects, which is not compatible with the discriminatedUnion
276
+
// method, so it is applied to the networkUserConfigSchema instead.
0 commit comments