Skip to content

Commit 76014c5

Browse files
committed
fix: update FCUv2 invalid payload attributes error code to -38003
Per ethereum/execution-apis#761, engine_forkchoiceUpdatedV2 should return -38003 (INVALID_PAYLOAD_ATTRIBUTES) instead of -32602 (INVALID_PARAMS) when the wrong version of payloadAttributes is provided.
1 parent dfea6b1 commit 76014c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • simulators/ethereum/engine/suites/withdrawals

simulators/ethereum/engine/suites/withdrawals/tests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ func (ws *WithdrawalsBaseSpec) Execute(t *test.Env) {
11801180
},
11811181
)
11821182
r.ExpectationDescription = "Sent pre-shanghai Forkchoice using ForkchoiceUpdatedV2 + Withdrawals, error is expected"
1183-
r.ExpectErrorCode(InvalidParamsError)
1183+
r.ExpectErrorCode(*globals.INVALID_PAYLOAD_ATTRIBUTES)
11841184

11851185
// Send a valid Pre-Shanghai request using ForkchoiceUpdatedV2
11861186
// (CLMock uses V1 by default)
@@ -1270,7 +1270,7 @@ func (ws *WithdrawalsBaseSpec) Execute(t *test.Env) {
12701270
},
12711271
)
12721272
r.ExpectationDescription = "Sent shanghai fcu using PayloadAttributesV1, error is expected"
1273-
r.ExpectErrorCode(InvalidParamsError)
1273+
r.ExpectErrorCode(*globals.INVALID_PAYLOAD_ATTRIBUTES)
12741274
}
12751275

12761276
// Send some withdrawals

0 commit comments

Comments
 (0)