Skip to content

Commit

Permalink
Change withdrawals field of ExecutionPayloadBodyV1 become optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Aug 17, 2023
1 parent a0922b3 commit 74a0af2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web3/engine_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ export

type
# https://github.com/ethereum/execution-apis/blob/d03c193dc317538e2a1a098030c21bacc2fd1333/src/engine/shanghai.md#executionpayloadbodyv1
# For optional withdrawals field, see:
# https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#engine_getpayloadbodiesbyhashv1
# https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#engine_getpayloadbodiesbyrangev1
ExecutionPayloadBodyV1* = object
transactions*: seq[TypedTransaction]
withdrawals*: seq[WithdrawalV1]
withdrawals*: Option[seq[WithdrawalV1]]

# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/paris.md#payloadattributesv1
PayloadAttributesV1* = object
Expand Down

0 comments on commit 74a0af2

Please sign in to comment.