Skip to content

Commit

Permalink
Remove unreachable handling of states with is_final() == True
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Oct 8, 2024
1 parent 7ce954d commit b5e0b6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/rpc_api/author.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
api::{rpc_api::events::FetchEvents, Error, Result},
error::FailedExtrinsicError,
rpc::{HandleSubscription, Request, Subscribe},
Api, ExtrinsicReport, TransactionStatus, UnexpectedTxStatus, XtStatus,
Api, ExtrinsicReport, TransactionStatus, XtStatus,
};
use ac_compose_macros::rpc_params;
use ac_primitives::{config::Config, UncheckedExtrinsicV4};
Expand Down Expand Up @@ -365,9 +365,6 @@ where
return Err(e)
},
}
if transaction_status.is_final() {
return Err(Error::UnexpectedTxStatus(UnexpectedTxStatus::Usurped))
}
}
Err(Error::NoStream)
}
Expand Down

0 comments on commit b5e0b6d

Please sign in to comment.