Skip to content

Commit

Permalink
Remove unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 10, 2024
1 parent bac7677 commit 28ccb71
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion core/node/api_server/src/execution_sandbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use zksync_types::{
api, fee_model::BatchFeeInput, AccountTreeId, Address, L1BatchNumber, L2BlockNumber, L2ChainId,
};

pub use self::execute::TransactionExecutor; // FIXME: remove
pub use self::execute::TransactionExecutor; // FIXME (PLA-1018): remove
use self::vm_metrics::SandboxStage;
pub(super) use self::{
error::SandboxExecutionError,
Expand Down
4 changes: 0 additions & 4 deletions core/node/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
zksync_basic_types.workspace = true
zksync_config.workspace = true
zksync_concurrency.workspace = true
zksync_consensus_crypto.workspace = true
Expand All @@ -35,9 +34,7 @@ zksync_utils.workspace = true
zksync_web3_decl.workspace = true
zksync_node_api_server.workspace = true
zksync_state.workspace = true
zksync_storage.workspace = true
zksync_vm_interface.workspace = true
zksync_multivm.workspace = true
anyhow.workspace = true
async-trait.workspace = true
secrecy.workspace = true
Expand All @@ -46,7 +43,6 @@ thiserror.workspace = true
tracing.workspace = true
hex.workspace = true
tokio.workspace = true
jsonrpsee.workspace = true
semver.workspace = true

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion core/node/consensus/src/en.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::sync::Arc;

use anyhow::Context as _;
use jsonrpsee::{core::ClientError, types::error::ErrorCode};
use zksync_concurrency::{ctx, error::Wrap as _, scope, time};
use zksync_consensus_executor::{self as executor, attestation};
use zksync_consensus_roles::{attester, validator};
Expand All @@ -12,6 +11,7 @@ use zksync_types::L2BlockNumber;
use zksync_web3_decl::{
client::{DynClient, L2},
error::is_retriable,
jsonrpsee::{core::ClientError, types::error::ErrorCode},
namespaces::{EnNamespaceClient as _, EthNamespaceClient as _},
};

Expand Down
7 changes: 4 additions & 3 deletions core/node/consensus/src/vm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Context as _;
use zksync_concurrency::{ctx, error::Wrap as _, scope};
use zksync_consensus_roles::attester;
use zksync_multivm::interface::TxExecutionMode;
use zksync_node_api_server::{
execution_sandbox::{TransactionExecutor, TxSetupArgs, VmConcurrencyLimiter},
tx_sender::MultiVMBaseSystemContracts,
Expand All @@ -11,7 +10,9 @@ use zksync_system_constants::DEFAULT_L2_TX_GAS_PER_PUBDATA_BYTE;
use zksync_types::{
ethabi, fee::Fee, fee_model::BatchFeeInput, l2::L2Tx, AccountTreeId, L2ChainId, Nonce, U256,
};
use zksync_vm_interface::{ExecutionResult, OneshotTracingParams, TxExecutionArgs};
use zksync_vm_interface::{
ExecutionResult, OneshotTracingParams, TxExecutionArgs, TxExecutionMode,
};

use crate::{abi, storage::ConnectionPool};

Expand Down Expand Up @@ -46,7 +47,7 @@ impl VM {
}
}

// FIXME: switch to oneshot executor
// FIXME (PLA-1018): switch to oneshot executor
pub async fn call<F: abi::Function>(
&self,
ctx: &ctx::Ctx,
Expand Down

0 comments on commit 28ccb71

Please sign in to comment.