Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Aug 22, 2024
1 parent 0a87648 commit a3002bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/async/examples/compose_extrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
)
Expand Down
1 change: 1 addition & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a3002bd

Please sign in to comment.