add pendingtransaction must_use

This commit is contained in:
DaniPopes 2023-02-25 23:25:15 +01:00
parent 2840b734dc
commit 770b21b4a3
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ use wasm_timer::Delay;
/// # }
/// ```
#[pin_project]
#[must_use = "A PendingTransaction is a future and it must be polled or awaited to completion"]
pub struct PendingTransaction<'a, P> {
tx_hash: TxHash,
confirmations: usize,