bump nim-web3 for correct getPayloadV2 response signature (#4471)

This commit is contained in:
tersec 2023-01-06 21:06:45 +00:00 committed by GitHub
parent 47cb0f7991
commit d1b799eb64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -561,15 +561,14 @@ proc getPayloadV1*(
proc getPayloadV2*( proc getPayloadV2*(
p: Eth1Monitor, payloadId: bellatrix.PayloadID): p: Eth1Monitor, payloadId: bellatrix.PayloadID):
Future[engine_api.ExecutionPayloadV2] = Future[engine_api.ExecutionPayloadV2] {.async.} =
# Eth1 monitor can recycle connections without (external) warning; at least, # Eth1 monitor can recycle connections without (external) warning; at least,
# don't crash. # don't crash.
if p.isNil or p.dataProvider.isNil: if p.isNil or p.dataProvider.isNil:
let epr = newFuture[engine_api.ExecutionPayloadV2]("getPayload") return default(engine_api.ExecutionPayloadV2)
epr.complete(default(engine_api.ExecutionPayloadV2))
return epr
p.dataProvider.web3.provider.engine_getPayloadV2(FixedBytes[8] payloadId) return (await p.dataProvider.web3.provider.engine_getPayloadV2(
FixedBytes[8] payloadId)).executionPayload
proc newPayload*(p: Eth1Monitor, payload: engine_api.ExecutionPayloadV1): proc newPayload*(p: Eth1Monitor, payload: engine_api.ExecutionPayloadV1):
Future[PayloadStatusV1] = Future[PayloadStatusV1] =

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit 43b710c5d64eb0c6dbde954f470aed46f8ab31b7 Subproject commit d596e68c14d0cf7fb3d52023ba16cac49b615173