Fix BlockNumber conversion for getBlockReceipts in portal_bridge (#2074)

This commit is contained in:
Kim De Mey 2024-03-14 17:21:10 +01:00 committed by GitHub
parent 7287efc7b4
commit 0fb7632aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ proc getBlockReceipts(
): Future[Result[seq[ReceiptObject], string]] {.async: (raises: []).} = ): Future[Result[seq[ReceiptObject], string]] {.async: (raises: []).} =
let res = let res =
try: try:
await client.eth_getBlockReceipts(blockNumber) await client.eth_getBlockReceipts(blockId(blockNumber))
except CatchableError as e: except CatchableError as e:
return err("JSON-RPC eth_getBlockReceipts failed: " & e.msg) return err("JSON-RPC eth_getBlockReceipts failed: " & e.msg)
if res.isNone(): if res.isNone():