File tree Expand file tree Collapse file tree 8 files changed +9
-1
lines changed
packages/rs-sdk/src/platform/transition Expand file tree Collapse file tree 8 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ use dpp::state_transition::StateTransition;
99use dpp:: version:: PlatformVersion ;
1010
1111/// Trait for building state transitions
12- #[ allow( async_fn_in_trait) ]
12+ #[ async_trait:: async_trait]
13+ #[ async_trait:: async_trait]
1314pub trait StateTransitionBuilder {
1415 /// Returns the settings for the state transition
1516 ///
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ impl<'a> TokenBurnTransitionBuilder<'a> {
111111 }
112112}
113113
114+ #[ async_trait:: async_trait]
114115impl StateTransitionBuilder for TokenBurnTransitionBuilder < ' _ > {
115116 /// Returns the settings for the token burn transition
116117 ///
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ impl<'a> TokenDestroyFrozenFundsTransitionBuilder<'a> {
119119 }
120120}
121121
122+ #[ async_trait:: async_trait]
122123impl StateTransitionBuilder for TokenDestroyFrozenFundsTransitionBuilder < ' _ > {
123124 /// Returns the settings for the token destroy transition
124125 ///
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ impl<'a> TokenEmergencyActionTransitionBuilder<'a> {
148148 }
149149}
150150
151+ #[ async_trait:: async_trait]
151152impl StateTransitionBuilder for TokenEmergencyActionTransitionBuilder < ' _ > {
152153 /// Returns the settings for the token emergency action transition
153154 ///
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ impl<'a> TokenFreezeTransitionBuilder<'a> {
119119 }
120120}
121121
122+ #[ async_trait:: async_trait]
122123impl StateTransitionBuilder for TokenFreezeTransitionBuilder < ' _ > {
123124 /// Returns the settings for the token freeze transition
124125 ///
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ impl<'a> TokenMintTransitionBuilder<'a> {
139139 }
140140}
141141
142+ #[ async_trait:: async_trait]
142143impl StateTransitionBuilder for TokenMintTransitionBuilder < ' _ > {
143144 /// Returns the settings for the token mint transition
144145 ///
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ impl<'a> TokenTransferTransitionBuilder<'a> {
143143 }
144144}
145145
146+ #[ async_trait:: async_trait]
146147impl StateTransitionBuilder for TokenTransferTransitionBuilder < ' _ > {
147148 /// Returns the settings for the token transfer transition
148149 ///
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ impl<'a> TokenUnfreezeTransitionBuilder<'a> {
119119 }
120120}
121121
122+ #[ async_trait:: async_trait]
122123impl StateTransitionBuilder for TokenUnfreezeTransitionBuilder < ' _ > {
123124 /// Returns the settings for the token unfreeze transition
124125 ///
You can’t perform that action at this time.
0 commit comments