Skip to content

Commit b5e0b6d

Browse files
committed
Remove unreachable handling of states with is_final() == True
1 parent 7ce954d commit b5e0b6d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/api/rpc_api/author.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
api::{rpc_api::events::FetchEvents, Error, Result},
1818
error::FailedExtrinsicError,
1919
rpc::{HandleSubscription, Request, Subscribe},
20-
Api, ExtrinsicReport, TransactionStatus, UnexpectedTxStatus, XtStatus,
20+
Api, ExtrinsicReport, TransactionStatus, XtStatus,
2121
};
2222
use ac_compose_macros::rpc_params;
2323
use ac_primitives::{config::Config, UncheckedExtrinsicV4};
@@ -365,9 +365,6 @@ where
365365
return Err(e)
366366
},
367367
}
368-
if transaction_status.is_final() {
369-
return Err(Error::UnexpectedTxStatus(UnexpectedTxStatus::Usurped))
370-
}
371368
}
372369
Err(Error::NoStream)
373370
}

0 commit comments

Comments
 (0)