Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rm one to_ethers call #6745

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/chisel/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

mattsse marked this conversation as resolved.
Show resolved Hide resolved
use foundry_compilers::Artifact;
use foundry_evm::{
backend::Backend, decode::decode_console_logs, executors::ExecutorBuilder,
Expand Down Expand Up @@ -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::<usize>();
let mem_offset = &memory[offset..offset + 32];
let len = U256::try_from_be_slice(mem_offset).unwrap().to::<usize>();
offset += 32;
Expand Down
Loading