@@ -122,7 +122,7 @@ impl TxQuery {
122122 async fn dry_run_inner (
123123 & self ,
124124 ctx : & Context < ' _ > ,
125- txs : Vec < HexString > ,
125+ txs : Vec < HexString < ' _ > > ,
126126 // If set to false, disable input utxo validation, overriding the configuration of the node.
127127 // This allows for non-existent inputs to be used without signature validation
128128 // for read-only calls.
@@ -373,7 +373,7 @@ impl TxQuery {
373373 #[ graphql(
374374 desc = "The original transaction that contains application level logic only"
375375 ) ]
376- tx : HexString ,
376+ tx : HexString < ' _ > ,
377377 #[ graphql(
378378 desc = "Number of blocks into the future to estimate the gas price for"
379379 ) ]
@@ -517,7 +517,7 @@ impl TxQuery {
517517 async fn estimate_predicates (
518518 & self ,
519519 ctx : & Context < ' _ > ,
520- tx : HexString ,
520+ tx : HexString < ' _ > ,
521521 ) -> async_graphql:: Result < Transaction > {
522522 let query = ctx. read_view ( ) ?. into_owned ( ) ;
523523
@@ -548,7 +548,7 @@ impl TxQuery {
548548 async fn dry_run (
549549 & self ,
550550 ctx : & Context < ' _ > ,
551- txs : Vec < HexString > ,
551+ txs : Vec < HexString < ' _ > > ,
552552 // If set to false, disable input utxo validation, overriding the configuration of the node.
553553 // This allows for non-existent inputs to be used without signature validation
554554 // for read-only calls.
@@ -572,7 +572,7 @@ impl TxQuery {
572572 async fn dry_run_record_storage_reads (
573573 & self ,
574574 ctx : & Context < ' _ > ,
575- txs : Vec < HexString > ,
575+ txs : Vec < HexString < ' _ > > ,
576576 // If set to false, disable input utxo validation, overriding the configuration of the node.
577577 // This allows for non-existent inputs to be used without signature validation
578578 // for read-only calls.
@@ -625,7 +625,7 @@ impl TxMutation {
625625 async fn dry_run (
626626 & self ,
627627 ctx : & Context < ' _ > ,
628- txs : Vec < HexString > ,
628+ txs : Vec < HexString < ' _ > > ,
629629 // If set to false, disable input utxo validation, overriding the configuration of the node.
630630 // This allows for non-existent inputs to be used without signature validation
631631 // for read-only calls.
@@ -646,7 +646,7 @@ impl TxMutation {
646646 async fn submit (
647647 & self ,
648648 ctx : & Context < ' _ > ,
649- tx : HexString ,
649+ tx : HexString < ' _ > ,
650650 estimate_predicates : Option < bool > ,
651651 ) -> async_graphql:: Result < Transaction > {
652652 let txpool = ctx. data_unchecked :: < TxPool > ( ) ;
@@ -677,7 +677,7 @@ impl TxMutation {
677677pub struct TxStatusSubscription ;
678678
679679#[ Subscription ]
680- impl TxStatusSubscription {
680+ impl < ' a > TxStatusSubscription {
681681 /// Returns a stream of status updates for the given transaction id.
682682 /// If the current status is [`TransactionStatus::Success`], [`TransactionStatus::Failed`],
683683 /// or [`TransactionStatus::SqueezedOut`] the stream will return that and end immediately.
@@ -691,7 +691,7 @@ impl TxStatusSubscription {
691691 /// a status. If this occurs the stream can simply be restarted to return
692692 /// the latest status.
693693 #[ graphql( complexity = "query_costs().status_change + child_complexity" ) ]
694- async fn status_change < ' a > (
694+ async fn status_change (
695695 & self ,
696696 ctx : & ' a Context < ' a > ,
697697 #[ graphql( desc = "The ID of the transaction" ) ] id : TransactionId ,
@@ -720,10 +720,10 @@ impl TxStatusSubscription {
720720
721721 /// Submits transaction to the `TxPool` and await either success or failure.
722722 #[ graphql( complexity = "query_costs().submit_and_await + child_complexity" ) ]
723- async fn submit_and_await < ' a > (
723+ async fn submit_and_await (
724724 & self ,
725725 ctx : & ' a Context < ' a > ,
726- tx : HexString ,
726+ tx : HexString < ' a > ,
727727 estimate_predicates : Option < bool > ,
728728 ) -> async_graphql:: Result <
729729 impl Stream < Item = async_graphql:: Result < TransactionStatus > > + ' a + use < ' a > ,
@@ -742,10 +742,10 @@ impl TxStatusSubscription {
742742 /// Compared to the `submitAndAwait`, the stream also contains
743743 /// `SubmittedStatus` and potentially preconfirmation as an intermediate state.
744744 #[ graphql( complexity = "query_costs().submit_and_await + child_complexity" ) ]
745- async fn submit_and_await_status < ' a > (
746- & self ,
745+ async fn submit_and_await_status (
746+ & ' a self ,
747747 ctx : & ' a Context < ' a > ,
748- tx : HexString ,
748+ tx : HexString < ' a > ,
749749 estimate_predicates : Option < bool > ,
750750 include_preconfirmation : Option < bool > ,
751751 ) -> async_graphql:: Result <
@@ -763,7 +763,7 @@ impl TxStatusSubscription {
763763
764764async fn submit_and_await_status < ' a > (
765765 ctx : & ' a Context < ' a > ,
766- tx : HexString ,
766+ tx : HexString < ' a > ,
767767 estimate_predicates : bool ,
768768 include_preconfirmation : bool ,
769769) -> async_graphql:: Result <
@@ -859,8 +859,8 @@ pub mod schema_types {
859859 // signature verification. They provide a mocked version of the predicate that
860860 // returns `true` even if the signature doesn't match.
861861 pub predicate_address : Address ,
862- pub predicate : HexString ,
863- pub predicate_data : HexString ,
862+ pub predicate : HexString < ' static > ,
863+ pub predicate_data : HexString < ' static > ,
864864 }
865865
866866 #[ derive( async_graphql:: InputObject ) ]
0 commit comments