diff --git a/examples/async/examples/compose_extrinsic.rs b/examples/async/examples/compose_extrinsic.rs index 3371df669..b4f69614b 100644 --- a/examples/async/examples/compose_extrinsic.rs +++ b/examples/async/examples/compose_extrinsic.rs @@ -139,7 +139,7 @@ async fn main() { println!("[+] Composed Extrinsic:\n {:?}", xt); let hash = api - .submit_and_watch_opaque_extrinsic_until_final( + .submit_and_watch_extrinsic_until_status( xt.encode().into(), &[TransactionStatusDeterminant::InBlock], ) diff --git a/src/api/mod.rs b/src/api/mod.rs index 93939e137..6a630fe15 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -101,6 +101,7 @@ pub enum TransactionStatusDeterminant { impl TransactionStatusDeterminant { pub fn as_u8(&self) -> u8 { + // The values must match those from TransactionStatus::as_u8()! match self { Self::Future => 0, Self::Ready => 1,