From 11294d08cb2cb568d9b018b8cb1805fc8d023579 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 9 Jan 2024 19:44:44 +0100 Subject: [PATCH 1/2] chore: rm one to_ethers call --- crates/chisel/src/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/chisel/src/executor.rs b/crates/chisel/src/executor.rs index f287bc5bdf212..499f2ed0a93af 100644 --- a/crates/chisel/src/executor.rs +++ b/crates/chisel/src/executor.rs @@ -10,7 +10,7 @@ use alloy_json_abi::EventParam; use alloy_primitives::{hex, Address, U256}; use core::fmt::Debug; use eyre::{Result, WrapErr}; -use foundry_common::types::ToEthers; + use foundry_compilers::Artifact; use foundry_evm::{ backend::Backend, decode::decode_console_logs, executors::ExecutorBuilder, @@ -237,7 +237,7 @@ impl SessionSource { // the file compiled correctly, thus the last stack item must be the memory offset of // the `bytes memory inspectoor` value - let mut offset = stack.data().last().unwrap().to_ethers().as_usize(); + let mut offset = stack.data().last().unwrap().to::(); let mem_offset = &memory[offset..offset + 32]; let len = U256::try_from_be_slice(mem_offset).unwrap().to::(); offset += 32; From 5d8f438c826bdd75bd4429ae9c8e1919f7271230 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 9 Jan 2024 19:54:19 +0100 Subject: [PATCH 2/2] Update crates/chisel/src/executor.rs Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com> --- crates/chisel/src/executor.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/chisel/src/executor.rs b/crates/chisel/src/executor.rs index 499f2ed0a93af..f3dcb40f37810 100644 --- a/crates/chisel/src/executor.rs +++ b/crates/chisel/src/executor.rs @@ -10,7 +10,6 @@ use alloy_json_abi::EventParam; use alloy_primitives::{hex, Address, U256}; use core::fmt::Debug; use eyre::{Result, WrapErr}; - use foundry_compilers::Artifact; use foundry_evm::{ backend::Backend, decode::decode_console_logs, executors::ExecutorBuilder,