From 65b50a7668b3685657c2676a8f1a42e75e2f7111 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Thu, 24 Dec 2020 18:33:22 +0200 Subject: [PATCH] fix: reschedule waker for >1 confs (#112) --- ethers-providers/src/pending_transaction.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethers-providers/src/pending_transaction.rs b/ethers-providers/src/pending_transaction.rs index 85c88ce4..2f4482db 100644 --- a/ethers-providers/src/pending_transaction.rs +++ b/ethers-providers/src/pending_transaction.rs @@ -126,7 +126,8 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> { *this.state = PendingTxState::Completed; return Poll::Ready(Ok(receipt)); } else { - *this.state = PendingTxState::PausedGettingBlockNumber(receipt.clone()) + *this.state = PendingTxState::PausedGettingBlockNumber(receipt.clone()); + ctx.waker().wake_by_ref(); } } PendingTxState::Completed => {