Skip to content

Commit

Permalink
use await in async proc
Browse files Browse the repository at this point in the history
Co-authored-by: gabrielmer <[email protected]>
  • Loading branch information
s-tikhomirov and gabrielmer authored Dec 17, 2024
1 parent 7afc762 commit 7ac3d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waku/incentivization/txid_proof.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ proc isEligibleTxId*(
var txReceipt: ReceiptObject
let txHash = TxHash.fromHex(byteutils.toHex(eligibilityProof.proofOfPayment.get()))
try:
(tx, txReceipt) = waitFor getTxAndTxReceipt(txHash, web3)
(tx, txReceipt) = await getTxAndTxReceipt(txHash, web3)
except ValueError:
let errorMsg = "Failed to fetch tx or tx receipt: " & getCurrentExceptionMsg()
error "exception in isEligibleTxId", error = $errorMsg
Expand Down

0 comments on commit 7ac3d0e

Please sign in to comment.