bump nim-web3 for random -> prevRandao rename (#3435)

This commit is contained in:
tersec 2022-02-24 17:01:48 +00:00 committed by GitHub
parent 05bc61b712
commit fef71a78a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -310,7 +310,7 @@ func asConsensusExecutionPayload*(rpcExecutionPayload: ExecutionPayloadV1):
state_root: rpcExecutionPayload.stateRoot.asEth2Digest,
receipts_root: rpcExecutionPayload.receiptsRoot.asEth2Digest,
logs_bloom: BloomLogs(data: rpcExecutionPayload.logsBloom.distinctBase),
random: rpcExecutionPayload.random.asEth2Digest,
random: rpcExecutionPayload.prevRandao.asEth2Digest,
block_number: rpcExecutionPayload.blockNumber.uint64,
gas_limit: rpcExecutionPayload.gasLimit.uint64,
gas_used: rpcExecutionPayload.gasUsed.uint64,
@ -336,7 +336,7 @@ func asEngineExecutionPayload*(executionPayload: bellatrix.ExecutionPayload):
receiptsRoot: executionPayload.receipts_root.asBlockHash,
logsBloom:
FixedBytes[BYTES_PER_LOGS_BLOOM](executionPayload.logs_bloom.data),
random: executionPayload.random.asBlockHash,
prevRandao: executionPayload.random.asBlockHash,
blockNumber: Quantity(executionPayload.block_number),
gasLimit: Quantity(executionPayload.gas_limit),
gasUsed: Quantity(executionPayload.gas_used),
@ -483,7 +483,7 @@ proc forkchoiceUpdated*(p: Web3DataProviderRef,
finalizedBlockHash: finalizedBlock.asBlockHash),
some(engine_api.PayloadAttributesV1(
timestamp: Quantity timestamp,
random: FixedBytes[32] randomData,
prevRandao: FixedBytes[32] randomData,
suggestedFeeRecipient: suggestedFeeRecipient)))
template readJsonField(j: JsonNode, fieldName: string, ValueType: type): untyped =

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit 719fb4813aa6e31f3b8774b52b35d8535fb828e6
Subproject commit 91c998a0d488cef011e84d8a1ef3d4f83d963111