@@ -4,7 +4,7 @@ use crate::run::output::TxResult;
44use crate :: run:: tracing_impl:: TracerWrapped ;
55use crate :: run:: { run_block, simulate_tx} ;
66use zk_ee:: system:: metadata:: zk_metadata:: BlockMetadataFromOracle ;
7- use zksync_os_interface:: tracing:: AnyTracer ;
7+ use zksync_os_interface:: tracing:: { AnyTracer , AnyTxValidator } ;
88use zksync_os_interface:: traits:: {
99 EncodedTx , PreimageSource , ReadStorage , RunBlock , SimulateTx , TxResultCallback , TxSource ,
1010} ;
@@ -27,6 +27,7 @@ impl RunBlock for RunBlockForward {
2727 TrSrc : TxSource ,
2828 TrCallback : TxResultCallback ,
2929 Tracer : AnyTracer ,
30+ Validator : AnyTxValidator ,
3031 > (
3132 & self ,
3233 _config : ( ) ,
@@ -36,6 +37,7 @@ impl RunBlock for RunBlockForward {
3637 tx_source : TrSrc ,
3738 tx_result_callback : TrCallback ,
3839 tracer : & mut Tracer ,
40+ _validator : & mut Validator ,
3941 ) -> Result < BlockOutput , Self :: Error > {
4042 let evm_tracer = tracer. as_evm ( ) . expect ( "only EVM tracers are supported" ) ;
4143 run_block (
@@ -53,14 +55,15 @@ impl SimulateTx for RunBlockForward {
5355 type Config = ( ) ;
5456 type Error = ForwardSubsystemError ;
5557
56- fn simulate_tx < Storage : ReadStorage , PreimgSrc : PreimageSource , Tracer : AnyTracer > (
58+ fn simulate_tx < Storage : ReadStorage , PreimgSrc : PreimageSource , Tracer : AnyTracer , Validator : AnyTxValidator > (
5759 & self ,
5860 _config : ( ) ,
5961 transaction : EncodedTx ,
6062 block_context : BlockContext ,
6163 storage : Storage ,
6264 preimage_source : PreimgSrc ,
6365 tracer : & mut Tracer ,
66+ _validator : & mut Validator ,
6467 ) -> Result < TxResult , Self :: Error > {
6568 let evm_tracer = tracer. as_evm ( ) . expect ( "only EVM tracers are supported" ) ;
6669 simulate_tx (
0 commit comments