Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Nov 25, 2023
1 parent 319ff8f commit 7d7d6f9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/http_fork_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ mod tests {
"result": {
"l1Erc20DefaultBridge": format!("{:#x}", input_bridge_addresses.l1_erc20_default_bridge),
"l2Erc20DefaultBridge": format!("{:#x}", input_bridge_addresses.l2_erc20_default_bridge),
"l1WethBridge": format!("{:#x}", input_bridge_addresses.l1_weth_bridge.clone().unwrap()),
"l2WethBridge": format!("{:#x}", input_bridge_addresses.l2_weth_bridge.clone().unwrap())
"l1WethBridge": format!("{:#x}", input_bridge_addresses.l1_weth_bridge.unwrap()),
"l2WethBridge": format!("{:#x}", input_bridge_addresses.l2_weth_bridge.unwrap())
},
"id": 0
}),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use zksync_basic_types::{H160, H256};

use crate::namespaces::{
ConfigurationApiNamespaceT, DebugNamespaceT, EthNamespaceT, EvmNamespaceT, HardhatNamespaceT,
NetNamespaceT, ZksNamespaceT, Web3NamespaceT
NetNamespaceT, Web3NamespaceT, ZksNamespaceT,
};

/// List of wallets (address, private key) that we seed with tokens at start.
Expand Down
6 changes: 3 additions & 3 deletions src/node/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ mod tests {
);
let secondary_deployed_address = deployed_address_create(from_account, U256::zero());
testing::deploy_contract(
&node,
node,
H256::repeat_byte(0x1),
private_key,
secondary_bytecode,
Expand All @@ -271,7 +271,7 @@ mod tests {
);
let primary_deployed_address = deployed_address_create(from_account, U256::one());
testing::deploy_contract(
&node,
node,
H256::repeat_byte(0x1),
private_key,
primary_bytecode,
Expand Down Expand Up @@ -306,7 +306,7 @@ mod tests {

// check that the call was successful
let output =
ethers::abi::decode(&[ParamType::Uint(256)], &trace.output.0.as_slice()).unwrap();
ethers::abi::decode(&[ParamType::Uint(256)], trace.output.0.as_slice()).unwrap();
assert_eq!(output[0], Token::Uint(U256::from(84)));

// find the call to primary contract in the trace
Expand Down
2 changes: 1 addition & 1 deletion src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod hardhat;
mod in_memory;
mod in_memory_ext;
mod net;
mod zks;
mod web3;
mod zks;

pub use in_memory::*;
2 changes: 1 addition & 1 deletion src/node/web3.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
fork::ForkSource,
namespaces::{Web3NamespaceT, Result},
namespaces::{Result, Web3NamespaceT},
node::InMemoryNode,
};

Expand Down
4 changes: 2 additions & 2 deletions src/node/zks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ mod tests {
"result": {
"l1Erc20DefaultBridge": format!("{:#x}", input_bridge_addresses.l1_erc20_default_bridge),
"l2Erc20DefaultBridge": format!("{:#x}", input_bridge_addresses.l2_erc20_default_bridge),
"l1WethBridge": format!("{:#x}", input_bridge_addresses.l1_weth_bridge.clone().unwrap()),
"l2WethBridge": format!("{:#x}", input_bridge_addresses.l2_weth_bridge.clone().unwrap())
"l1WethBridge": format!("{:#x}", input_bridge_addresses.l1_weth_bridge.unwrap()),
"l2WethBridge": format!("{:#x}", input_bridge_addresses.l2_weth_bridge.unwrap())
},
"id": 0
}),
Expand Down

0 comments on commit 7d7d6f9

Please sign in to comment.