Skip to content

Commit 0fe1bc0

Browse files
eth/catalyst: fix error message in ExecuteStatelessPayloadV4 (#32269)
Correct the error message in the ExecuteStatelessPayloadV4 function to reference newPayloadV4 and the Prague fork, instead of incorrectly referencing newPayloadV3 and Cancun. This improves clarity during debugging and aligns the error message with the actual function and fork being validated. No logic is changed. --------- Co-authored-by: rjl493456442 <[email protected]>
1 parent 29eebb5 commit 0fe1bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/catalyst/witness.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV4(params engine.ExecutableData,
228228
return engine.StatelessPayloadStatusV1{Status: engine.INVALID}, paramsErr("nil beaconRoot post-cancun")
229229
case executionRequests == nil:
230230
return engine.StatelessPayloadStatusV1{Status: engine.INVALID}, paramsErr("nil executionRequests post-prague")
231-
case !api.checkFork(params.Timestamp, forks.Prague):
232-
return engine.StatelessPayloadStatusV1{Status: engine.INVALID}, unsupportedForkErr("newPayloadV3 must only be called for cancun payloads")
231+
case !api.checkFork(params.Timestamp, forks.Prague, forks.Osaka):
232+
return engine.StatelessPayloadStatusV1{Status: engine.INVALID}, unsupportedForkErr("newPayloadV4 must only be called for prague payloads")
233233
}
234234
requests := convertRequests(executionRequests)
235235
if err := validateRequests(requests); err != nil {

0 commit comments

Comments
 (0)