@@ -626,7 +626,7 @@ impl TxStatusSubscription {
626626 ctx : & ' a Context < ' a > ,
627627 #[ graphql( desc = "The ID of the transaction" ) ] id : TransactionId ,
628628 #[ graphql( desc = "If true, accept to receive the preconfirmation status" ) ]
629- allow_preconfirmation : Option < bool > ,
629+ include_preconfirmation : Option < bool > ,
630630 ) -> anyhow:: Result < impl Stream < Item = async_graphql:: Result < TransactionStatus > > + ' a >
631631 {
632632 let tx_status_manager = ctx. data_unchecked :: < DynTxStatusManager > ( ) ;
@@ -641,7 +641,7 @@ impl TxStatusSubscription {
641641 status_change_state,
642642 rx,
643643 id. into ( ) ,
644- allow_preconfirmation . unwrap_or ( false ) ,
644+ include_preconfirmation . unwrap_or ( false ) ,
645645 )
646646 . await
647647 . map_err ( async_graphql:: Error :: from) )
@@ -676,15 +676,15 @@ impl TxStatusSubscription {
676676 ctx : & ' a Context < ' a > ,
677677 tx : HexString ,
678678 estimate_predicates : Option < bool > ,
679- allow_preconfirmation : Option < bool > ,
679+ include_preconfirmation : Option < bool > ,
680680 ) -> async_graphql:: Result <
681681 impl Stream < Item = async_graphql:: Result < TransactionStatus > > + ' a ,
682682 > {
683683 submit_and_await_status (
684684 ctx,
685685 tx,
686686 estimate_predicates. unwrap_or ( false ) ,
687- allow_preconfirmation . unwrap_or ( false ) ,
687+ include_preconfirmation . unwrap_or ( false ) ,
688688 )
689689 . await
690690 }
@@ -694,7 +694,7 @@ async fn submit_and_await_status<'a>(
694694 ctx : & ' a Context < ' a > ,
695695 tx : HexString ,
696696 estimate_predicates : bool ,
697- allow_preconfirmation : bool ,
697+ include_preconfirmation : bool ,
698698) -> async_graphql:: Result <
699699 impl Stream < Item = async_graphql:: Result < TransactionStatus > > + ' a ,
700700> {
@@ -721,7 +721,7 @@ async fn submit_and_await_status<'a>(
721721 match status {
722722 TxStatusMessage :: Status ( status) => {
723723 let status = TransactionStatus :: new ( tx_id, status) ;
724- if !allow_preconfirmation && status. is_preconfirmation ( ) {
724+ if !include_preconfirmation && status. is_preconfirmation ( ) {
725725 None
726726 } else {
727727 Some ( Ok ( status) )
@@ -746,13 +746,13 @@ impl<'a> TxnStatusChangeState for StatusChangeState<'a> {
746746 async fn get_tx_status (
747747 & self ,
748748 id : Bytes32 ,
749- allow_preconfirmation : bool ,
749+ include_preconfirmation : bool ,
750750 ) -> StorageResult < Option < transaction_status:: TransactionStatus > > {
751751 get_tx_status (
752752 & id,
753753 self . query . as_ref ( ) ,
754754 self . tx_status_manager ,
755- allow_preconfirmation ,
755+ include_preconfirmation ,
756756 )
757757 . await
758758 }
0 commit comments