11use super :: { CallTrapData , CreateTrapData , Precompile , ResolvedCode , SubstackInvoke } ;
2- use crate :: standard:: { Config , MergeableRuntimeState } ;
2+ use crate :: standard:: Config ;
33use crate :: {
44 ExitError , ExitException , ExitResult , GasedMachine , Gasometer as GasometerT , InvokerControl ,
5- Machine , MergeStrategy , Opcode , RuntimeBackend , RuntimeEnvironment , StaticGasometer ,
6- TransactionalBackend , Transfer ,
5+ Machine , MergeStrategy , Opcode , RuntimeBackend , RuntimeEnvironment , RuntimeState ,
6+ StaticGasometer , TransactionalBackend , Transfer ,
77} ;
88use alloc:: rc:: Rc ;
99use primitive_types:: { H160 , U256 } ;
@@ -19,7 +19,7 @@ pub fn make_enter_call_machine<'config, 'precompile, S, G, H, P>(
1919 handler : & mut H ,
2020) -> Result < InvokerControl < GasedMachine < S , G > , ( ExitResult , ( S , G , Vec < u8 > ) ) > , ExitError >
2121where
22- S : MergeableRuntimeState ,
22+ S : AsRef < RuntimeState > ,
2323 G : GasometerT < S , H > ,
2424 H : RuntimeEnvironment + RuntimeBackend + TransactionalBackend ,
2525 P : Precompile < S , G , H > ,
@@ -67,7 +67,7 @@ pub fn make_enter_create_machine<'config, S, G, H>(
6767 handler : & mut H ,
6868) -> Result < GasedMachine < S , G > , ExitError >
6969where
70- S : MergeableRuntimeState ,
70+ S : AsRef < RuntimeState > ,
7171 G : GasometerT < S , H > ,
7272 H : RuntimeEnvironment + RuntimeBackend + TransactionalBackend ,
7373{
@@ -125,7 +125,7 @@ pub fn enter_call_substack<'config, 'precompile, S, G, H, P>(
125125 ExitError ,
126126>
127127where
128- S : MergeableRuntimeState ,
128+ S : AsRef < RuntimeState > ,
129129 G : GasometerT < S , H > ,
130130 H : RuntimeEnvironment + RuntimeBackend + TransactionalBackend ,
131131 P : Precompile < S , G , H > ,
@@ -166,7 +166,7 @@ pub fn enter_create_substack<'config, S, G, H>(
166166 handler : & mut H ,
167167) -> Result < ( SubstackInvoke , GasedMachine < S , G > ) , ExitError >
168168where
169- S : MergeableRuntimeState ,
169+ S : AsRef < RuntimeState > ,
170170 G : GasometerT < S , H > ,
171171 H : RuntimeEnvironment + RuntimeBackend + TransactionalBackend ,
172172{
@@ -225,7 +225,6 @@ pub fn deploy_create_code<'config, S, G, H>(
225225 handler : & mut H ,
226226) -> Result < ( ) , ExitError >
227227where
228- S : MergeableRuntimeState ,
229228 G : GasometerT < S , H > ,
230229 H : RuntimeEnvironment + RuntimeBackend + TransactionalBackend ,
231230{
0 commit comments