Skip to content

Commit

Permalink
chore: fix codespell errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Oct 31, 2024
1 parent 8d3aa99 commit 99f8d3d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/forge/bin/cmd/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl CreateArgs {
} else {
// Deploy with signer
// Avoid initializing `signer` twice as it will error out with Ledger
// and potentailly other devices that rely on HID too
// and potentially other devices that rely on HID too
let zk_signer = self.eth.wallet.signer().await?;
let deployer = zk_signer.address();
let provider = ProviderBuilder::<_, _, AnyNetwork>::default().on_provider(provider);
Expand Down
2 changes: 1 addition & 1 deletion crates/verify/src/zk_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl CompilerVerificationContext {
Self::Solc(c) => &c.compiler_version,
// TODO: will refer to the solc version here. Analyze if we can remove
// this ambiguity somehow (e.g: by having sepparate paths for solc/zksolc
// and remove this method alltogether)
// and remove this method altogether)
Self::ZkSolc(c) => &c.compiler_version.solc,
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/zksync/compiler/src/libraries.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Handles resolution nd storage of missing libraries emitted by zksolc
//! Handles resolution and storage of missing libraries emitted by zksolc

use std::{
fs,
Expand Down Expand Up @@ -110,7 +110,7 @@ pub fn resolve_libraries(
}

// remove this batch from each library's missing_library if listed as dependency
// this potentailly allows more libraries to be included in the next batch
// this potentially allows more libraries to be included in the next batch
for lib in &mut missing_libraries {
lib.missing_libraries.retain(|maybe_missing_lib| {
let mut split = maybe_missing_lib.split(':');
Expand Down
2 changes: 1 addition & 1 deletion crates/zksync/compiler/src/zksolc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl DualCompiledContracts {
debug!(
name = contract.name,
deps = contract.zk_factory_deps.len(),
"new factory depdendency"
"new factory dependency"
);

for nested_dep in &contract.zk_factory_deps {
Expand Down
4 changes: 2 additions & 2 deletions crates/zksync/core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ pub fn fix_l2_gas_price(gas_price: U256) -> U256 {
U256::max(gas_price, U256::from(260_000_000))
}

/// Limits the gas_limit propotional to a user's available balance given the gas_price.
/// Additionally, fixes the gas limit to be maxmium of 2^31, which is below the VM gas limit of
/// Limits the gas_limit proportional to a user's available balance given the gas_price.
/// Additionally, fixes the gas limit to be maximum of 2^31, which is below the VM gas limit of
/// 2^32. This is required so the bootloader does not throw an error for not having enough balance
/// to pay for gas.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/zksync/core/src/vm/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// This way, we can run transaction on top of the chain that is persisted
/// in the Database object.
/// This code doesn't do any mutatios to Database: after each transaction run, the Revm
/// is usually collecing all the diffs - and applies them to database itself.
/// is usually collecting all the diffs - and applies them to database itself.
use std::{collections::HashMap as sHashMap, fmt::Debug};

use alloy_primitives::{map::HashMap, Address, U256 as rU256};
Expand Down

0 comments on commit 99f8d3d

Please sign in to comment.