Fixed compilation error in exec function

This commit is contained in:
Yuriy Glukhov 2024-01-04 12:36:40 +01:00
parent 09ce974cab
commit 98fb3aa2a1
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ proc getMinedTransactionReceipt*(web3: Web3, tx: TxHash): Future[ReceiptObject]
proc exec*[T](c: ContractInvocation[T, Web3SenderImpl], value = 0.u256, gas = 3000000'u64): Future[T] {.async.} =
let h = await c.send(value, gas)
let receipt = await c.web3.getMinedTransactionReceipt(h)
let receipt = await c.sender.web3.getMinedTransactionReceipt(h)
# TODO: decode result from receipt