Skip to content

Commit

Permalink
Fixed compilation error in exec function
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Jan 4, 2024
1 parent e51139d commit 7983333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,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

Expand Down

0 comments on commit 7983333

Please sign in to comment.