bump nim-web3 to align WithdrawalRequestV1 with EIP-7002 and consensus spec (#6395)

This commit is contained in:
tersec 2024-07-01 14:07:30 +00:00 committed by GitHub
parent 13e766d4df
commit 8c67a265d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -513,8 +513,7 @@ func asConsensusType*(rpcExecutionPayload: ExecutionPayloadV4):
template getWithdrawalRequest(wr: WithdrawalRequestV1): WithdrawalRequest = template getWithdrawalRequest(wr: WithdrawalRequestV1): WithdrawalRequest =
WithdrawalRequest( WithdrawalRequest(
source_address: ExecutionAddress(data: wr.sourceAddress.distinctBase), source_address: ExecutionAddress(data: wr.sourceAddress.distinctBase),
validator_pubkey: ValidatorPubKey( validator_pubkey: ValidatorPubKey(blob: wr.validatorPubkey.distinctBase),
blob: wr.validatorPublicKey.distinctBase),
amount: wr.amount.Gwei) amount: wr.amount.Gwei)
template getConsolidationRequest(cr: ConsolidationRequestV1): template getConsolidationRequest(cr: ConsolidationRequestV1):
@ -667,7 +666,7 @@ func asEngineExecutionPayload*(executionPayload: electra.ExecutionPayload):
template getWithdrawalRequest(wr: WithdrawalRequest): WithdrawalRequestV1 = template getWithdrawalRequest(wr: WithdrawalRequest): WithdrawalRequestV1 =
WithdrawalRequestV1( WithdrawalRequestV1(
sourceAddress: Address(wr.source_address.data), sourceAddress: Address(wr.source_address.data),
validatorPublicKey: FixedBytes[RawPubKeySize](wr.validator_pubkey.blob), validatorPubkey: FixedBytes[RawPubKeySize](wr.validator_pubkey.blob),
amount: wr.amount.Quantity) amount: wr.amount.Quantity)
template getConsolidationRequest(cr: ConsolidationRequest): template getConsolidationRequest(cr: ConsolidationRequest):

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit fc226d4511199aa57a3fcd5cc44695c6b365a6bf Subproject commit 3ba859d8f11bf71e96161741f99b55206425968f