@@ -124,7 +124,7 @@ impl TxQuery {
124124 async fn dry_run_inner (
125125 & self ,
126126 ctx : & Context < ' _ > ,
127- txs : Vec < HexString > ,
127+ txs : Vec < HexString < ' _ > > ,
128128 // If set to false, disable input utxo validation, overriding the configuration of the node.
129129 // This allows for non-existent inputs to be used without signature validation
130130 // for read-only calls.
@@ -375,7 +375,7 @@ impl TxQuery {
375375 #[ graphql(
376376 desc = "The original transaction that contains application level logic only"
377377 ) ]
378- tx : HexString ,
378+ tx : HexString < ' _ > ,
379379 #[ graphql(
380380 desc = "Number of blocks into the future to estimate the gas price for"
381381 ) ]
@@ -519,7 +519,7 @@ impl TxQuery {
519519 async fn estimate_predicates (
520520 & self ,
521521 ctx : & Context < ' _ > ,
522- tx : HexString ,
522+ tx : HexString < ' _ > ,
523523 ) -> async_graphql:: Result < Transaction > {
524524 let query = ctx. read_view ( ) ?. into_owned ( ) ;
525525
@@ -550,7 +550,7 @@ impl TxQuery {
550550 async fn dry_run (
551551 & self ,
552552 ctx : & Context < ' _ > ,
553- txs : Vec < HexString > ,
553+ txs : Vec < HexString < ' _ > > ,
554554 // If set to false, disable input utxo validation, overriding the configuration of the node.
555555 // This allows for non-existent inputs to be used without signature validation
556556 // for read-only calls.
@@ -574,7 +574,7 @@ impl TxQuery {
574574 async fn dry_run_record_storage_reads (
575575 & self ,
576576 ctx : & Context < ' _ > ,
577- txs : Vec < HexString > ,
577+ txs : Vec < HexString < ' _ > > ,
578578 // If set to false, disable input utxo validation, overriding the configuration of the node.
579579 // This allows for non-existent inputs to be used without signature validation
580580 // for read-only calls.
@@ -627,7 +627,7 @@ impl TxMutation {
627627 async fn dry_run (
628628 & self ,
629629 ctx : & Context < ' _ > ,
630- txs : Vec < HexString > ,
630+ txs : Vec < HexString < ' _ > > ,
631631 // If set to false, disable input utxo validation, overriding the configuration of the node.
632632 // This allows for non-existent inputs to be used without signature validation
633633 // for read-only calls.
@@ -648,7 +648,7 @@ impl TxMutation {
648648 async fn submit (
649649 & self ,
650650 ctx : & Context < ' _ > ,
651- tx : HexString ,
651+ tx : HexString < ' _ > ,
652652 estimate_predicates : Option < bool > ,
653653 ) -> async_graphql:: Result < Transaction > {
654654 let txpool = ctx. data_unchecked :: < TxPool > ( ) ;
@@ -679,7 +679,7 @@ impl TxMutation {
679679pub struct TxStatusSubscription ;
680680
681681#[ Subscription ]
682- impl TxStatusSubscription {
682+ impl < ' a > TxStatusSubscription {
683683 /// Returns a stream of status updates for the given transaction id.
684684 /// If the current status is [`TransactionStatus::Success`], [`TransactionStatus::Failed`],
685685 /// or [`TransactionStatus::SqueezedOut`] the stream will return that and end immediately.
@@ -693,7 +693,7 @@ impl TxStatusSubscription {
693693 /// a status. If this occurs the stream can simply be restarted to return
694694 /// the latest status.
695695 #[ graphql( complexity = "query_costs().status_change + child_complexity" ) ]
696- async fn status_change < ' a > (
696+ async fn status_change (
697697 & self ,
698698 ctx : & ' a Context < ' a > ,
699699 #[ graphql( desc = "The ID of the transaction" ) ] id : TransactionId ,
@@ -745,10 +745,10 @@ impl TxStatusSubscription {
745745
746746 /// Submits transaction to the `TxPool` and await either success or failure.
747747 #[ graphql( complexity = "query_costs().submit_and_await + child_complexity" ) ]
748- async fn submit_and_await < ' a > (
748+ async fn submit_and_await (
749749 & self ,
750750 ctx : & ' a Context < ' a > ,
751- tx : HexString ,
751+ tx : HexString < ' a > ,
752752 estimate_predicates : Option < bool > ,
753753 ) -> async_graphql:: Result <
754754 impl Stream < Item = async_graphql:: Result < TransactionStatus > > + ' a + use < ' a > ,
@@ -767,10 +767,10 @@ impl TxStatusSubscription {
767767 /// Compared to the `submitAndAwait`, the stream also contains
768768 /// `SubmittedStatus` and potentially preconfirmation as an intermediate state.
769769 #[ graphql( complexity = "query_costs().submit_and_await + child_complexity" ) ]
770- async fn submit_and_await_status < ' a > (
771- & self ,
770+ async fn submit_and_await_status (
771+ & ' a self ,
772772 ctx : & ' a Context < ' a > ,
773- tx : HexString ,
773+ tx : HexString < ' a > ,
774774 estimate_predicates : Option < bool > ,
775775 include_preconfirmation : Option < bool > ,
776776 ) -> async_graphql:: Result <
@@ -788,7 +788,7 @@ impl TxStatusSubscription {
788788
789789async fn submit_and_await_status < ' a > (
790790 ctx : & ' a Context < ' a > ,
791- tx : HexString ,
791+ tx : HexString < ' a > ,
792792 estimate_predicates : bool ,
793793 include_preconfirmation : bool ,
794794) -> async_graphql:: Result <
@@ -884,8 +884,8 @@ pub mod schema_types {
884884 // signature verification. They provide a mocked version of the predicate that
885885 // returns `true` even if the signature doesn't match.
886886 pub predicate_address : Address ,
887- pub predicate : HexString ,
888- pub predicate_data : HexString ,
887+ pub predicate : HexString < ' static > ,
888+ pub predicate_data : HexString < ' static > ,
889889 }
890890
891891 #[ derive( async_graphql:: InputObject ) ]
0 commit comments