Skip to content

Commit 77014c5

Browse files
committed
adapt to interface 0.0.13
1 parent 1350138 commit 77014c5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ keywords = ["blockchain", "zksync", "zk", "risc-v"]
5757
categories = ["cryptography"]
5858

5959
[workspace.dependencies]
60-
zksync_os_evm_errors = { version = "0.0.10", default-features = false }
61-
zksync_os_interface = { version = "0.0.10"}
60+
zksync_os_evm_errors = { version = "0.0.13", default-features = false }
61+
zksync_os_interface = { version = "0.0.13"}
6262

6363
risc_v_simulator = { git = "https://github.com/matter-labs/zksync-airbender", tag = "v0.4.3"}
6464
blake2s_u32 = { git = "https://github.com/matter-labs/zksync-airbender", tag = "v0.4.3"}

forward_system/src/run/interface_impl.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::run::output::TxResult;
44
use crate::run::tracing_impl::TracerWrapped;
55
use crate::run::{run_block, simulate_tx};
66
use zk_ee::system::metadata::zk_metadata::BlockMetadataFromOracle;
7-
use zksync_os_interface::tracing::AnyTracer;
7+
use zksync_os_interface::tracing::{AnyTracer, AnyTxValidator};
88
use 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(

forward_system/src/run/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<TR: TxResultCallback> From<ForwardRunningResultKeeper<TR>> for BlockOutput
135135
account_diffs,
136136
published_preimages,
137137
pubdata,
138-
computaional_native_used: block_computaional_native_used,
138+
computational_native_used: block_computaional_native_used,
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)