Skip to content

Commit 710143a

Browse files
lupin012claude
andcommitted
rpc/ethapi: fix withdrawals error message in BlockOverrides.Override
Align the error message for the Withdrawals rejection with the Geth format and with the existing BeaconRoot message: both now use the lowercase-field-name pattern so that callers can reliably check for the field name (e.g. assert.Contains(..., "withdrawals")). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0e9a4da commit 710143a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/ethapi/block_overrides.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (overrides *BlockOverrides) Override(context *evmtypes.BlockContext) error
6161
return errors.New(`block override "beaconRoot" is not supported for this RPC method`)
6262
}
6363
if overrides.Withdrawals != nil {
64-
return errors.New(`BlockOverrides.Withdrawals not supported`)
64+
return errors.New(`block override "withdrawals" is not supported for this RPC method`)
6565
}
6666
if overrides.Number != nil {
6767
context.BlockNumber = overrides.Number.Uint64()

0 commit comments

Comments
 (0)