diff --git a/subxt/src/backend/unstable/mod.rs b/subxt/src/backend/unstable/mod.rs index 52a5e6398f..97cf15cdf0 100644 --- a/subxt/src/backend/unstable/mod.rs +++ b/subxt/src/backend/unstable/mod.rs @@ -539,12 +539,11 @@ impl Backend for UnstableBackend { // If we have a finalized hash, we are done looking for tx events and we are just waiting // for a pinned block with a matching hash (which must appear eventually given it's finalized). if let Some(hash) = &finalized_hash { - if let Some((SeenBlockMarker::Finalized, block_ref)) = seen_blocks.remove(hash) - { + if let Some((SeenBlockMarker::Finalized, block_ref)) = seen_blocks.get(hash) { // Found it! Hand back the event with a pinned block. We're done. done = true; let ev = TransactionStatus::InFinalizedBlock { - hash: block_ref.into(), + hash: block_ref.clone().into(), }; return Poll::Ready(Some(Ok(ev))); } else {