Turn `confirm` into proc instead of method
This commit is contained in:
parent
e6c9b59cfb
commit
346053e3f2
|
@ -228,7 +228,7 @@ func hasBeenMined*(receipt: ?TransactionReceipt,
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
||||||
method confirm*(tx: TransactionResponse,
|
proc confirm*(tx: TransactionResponse,
|
||||||
wantedConfirms: Positive = EthersDefaultConfirmations,
|
wantedConfirms: Positive = EthersDefaultConfirmations,
|
||||||
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
||||||
Future[TransactionReceipt]
|
Future[TransactionReceipt]
|
||||||
|
@ -283,7 +283,7 @@ method confirm*(tx: TransactionResponse,
|
||||||
subscription = JsonRpcSubscription(sub)
|
subscription = JsonRpcSubscription(sub)
|
||||||
return (await retFut)
|
return (await retFut)
|
||||||
|
|
||||||
method confirm*(tx: Future[TransactionResponse],
|
proc confirm*(tx: Future[TransactionResponse],
|
||||||
wantedConfirms: Positive = EthersDefaultConfirmations,
|
wantedConfirms: Positive = EthersDefaultConfirmations,
|
||||||
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
||||||
Future[TransactionReceipt] {.async.} =
|
Future[TransactionReceipt] {.async.} =
|
||||||
|
@ -294,7 +294,7 @@ method confirm*(tx: Future[TransactionResponse],
|
||||||
let txResp = await tx
|
let txResp = await tx
|
||||||
return await txResp.confirm(wantedConfirms, timeoutInBlocks)
|
return await txResp.confirm(wantedConfirms, timeoutInBlocks)
|
||||||
|
|
||||||
method confirm*(tx: Future[?TransactionResponse],
|
proc confirm*(tx: Future[?TransactionResponse],
|
||||||
wantedConfirms: Positive = EthersDefaultConfirmations,
|
wantedConfirms: Positive = EthersDefaultConfirmations,
|
||||||
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
timeoutInBlocks: Natural = EthersReceiptTimeoutBlks):
|
||||||
Future[TransactionReceipt] {.async.} =
|
Future[TransactionReceipt] {.async.} =
|
||||||
|
|
Loading…
Reference in New Issue