Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
compiles (currently depending on a local branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-zk committed Oct 6, 2023
1 parent 6d1145f commit 53213be
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 40 deletions.
130 changes: 105 additions & 25 deletions bootloader/test_infra/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions bootloader/test_infra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ edition = "2021"

[dependencies]

vm = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
zksync_types = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
zksync_contracts = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
zksync_state = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
vlog = { git = "https://github.com/matter-labs/zksync-era.git", tag = "v7.0.0-rc0" }
vm = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }
zksync_types = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }
zksync_contracts = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }
zksync_state = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }
vlog = { git = "https://github.com/matter-labs/zksync-era.git", branch = "mmzk_1006_fix_tracer" }

colored = "2.0"
hex = "0.4"
Expand Down
8 changes: 4 additions & 4 deletions bootloader/test_infra/src/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use colored::Colorize;
use once_cell::sync::OnceCell;
use vm::{
DynTracer, ExecutionEndTracer, ExecutionProcessing, Halt, HistoryMode, SimpleMemory,
VmExecutionResultAndLogs, VmTracer,
TracerExecutionStatus, TracerExecutionStopReason, VmExecutionResultAndLogs, VmTracer,
};
use zksync_state::{StoragePtr, WriteStorage};
use zksync_types::zkevm_test_harness::zk_evm::tracing::{BeforeExecutionData, VmLocalStateData};
Expand Down Expand Up @@ -73,15 +73,15 @@ impl<S, H: HistoryMode> DynTracer<S, H> for BootloaderTestTracer {
}

impl<H: HistoryMode> ExecutionEndTracer<H> for BootloaderTestTracer {
fn should_stop_execution(&self) -> bool {
fn should_stop_execution(&self) -> TracerExecutionStatus {
if let Some(TestResult {
test_name: _,
result: Err(_),
}) = self.test_result.get()
{
return true;
return TracerExecutionStatus::Stop(TracerExecutionStopReason::Finish);
}
return false;
return TracerExecutionStatus::Continue;
}
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@types/chai": "^4.3.1",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.34",
"@typechain/hardhat": "^8.0.0",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"prettier": "^2.3.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -859,10 +859,10 @@
lodash "^4.17.15"
ts-essentials "^7.0.1"

"@typechain/hardhat@^8.0.0":
version "8.0.3"
resolved "https://registry.yarnpkg.com/@typechain/hardhat/-/hardhat-8.0.3.tgz#a114825f130405bbb8e535314003733b7ce3f91c"
integrity sha512-MytSmJJn+gs7Mqrpt/gWkTCOpOQ6ZDfRrRT2gtZL0rfGe4QrU4x9ZdW15fFbVM/XTa+5EsKiOMYXhRABibNeng==
"@typechain/hardhat@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@typechain/hardhat/-/hardhat-7.0.0.tgz#ffa7465328150e793007fee616ae7b76ed20784d"
integrity sha512-XB79i5ewg9Met7gMVGfgVkmypicbnI25T5clJBEooMoW2161p4zvKFpoS2O+lBppQyMrPIZkdvl2M3LMDayVcA==
dependencies:
fs-extra "^9.1.0"

Expand Down

0 comments on commit 53213be

Please sign in to comment.