Fixed compilation error in exec function
This commit is contained in:
parent
09ce974cab
commit
98fb3aa2a1
2
web3.nim
2
web3.nim
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue