Skip to content

Commit

Permalink
bump nim-web3 to align WithdrawalRequestV1 with EIP-7002 and consensu…
Browse files Browse the repository at this point in the history
…s spec (#6395)
  • Loading branch information
tersec committed Jul 1, 2024
1 parent 13e766d commit 8c67a26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions beacon_chain/el/el_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,7 @@ func asConsensusType*(rpcExecutionPayload: ExecutionPayloadV4):
template getWithdrawalRequest(wr: WithdrawalRequestV1): WithdrawalRequest =
WithdrawalRequest(
source_address: ExecutionAddress(data: wr.sourceAddress.distinctBase),
validator_pubkey: ValidatorPubKey(
blob: wr.validatorPublicKey.distinctBase),
validator_pubkey: ValidatorPubKey(blob: wr.validatorPubkey.distinctBase),
amount: wr.amount.Gwei)

template getConsolidationRequest(cr: ConsolidationRequestV1):
Expand Down Expand Up @@ -667,7 +666,7 @@ func asEngineExecutionPayload*(executionPayload: electra.ExecutionPayload):
template getWithdrawalRequest(wr: WithdrawalRequest): WithdrawalRequestV1 =
WithdrawalRequestV1(
sourceAddress: Address(wr.source_address.data),
validatorPublicKey: FixedBytes[RawPubKeySize](wr.validator_pubkey.blob),
validatorPubkey: FixedBytes[RawPubKeySize](wr.validator_pubkey.blob),
amount: wr.amount.Quantity)

template getConsolidationRequest(cr: ConsolidationRequest):
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-web3

0 comments on commit 8c67a26

Please sign in to comment.