Skip to content

Commit

Permalink
remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jrigada committed Jan 5, 2024
1 parent 4bcdf12 commit b29a859
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions crates/era-cheatcodes/src/cheatcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,14 +716,19 @@ impl CheatcodeTracer {
match call {
activeFork(activeForkCall {}) => {
tracing::info!("👷 Getting active fork");
let handle: &ForkStorage<RevmDatabaseForEra<S>> = &storage.borrow_mut().storage_handle;
let handle: &ForkStorage<RevmDatabaseForEra<S>> =
&storage.borrow_mut().storage_handle;
let fork_storage = handle.inner.read().unwrap();
let fork_id = fork_storage.fork.as_ref().unwrap().fork_source.db.lock().unwrap().active_fork_id();
assert!(
fork_id.is_some(),
"No active fork found. Please create a fork first."
);
println!("Active fork: {}", fork_id.unwrap());
let fork_id = fork_storage
.fork
.as_ref()
.unwrap()
.fork_source
.db
.lock()
.unwrap()
.active_fork_id();
assert!(fork_id.is_some(), "No active fork found. Please create a fork first.");
self.return_data = Some(vec![fork_id.unwrap().to_u256()]);
}
addr(addrCall { privateKey: private_key }) => {
Expand Down

0 comments on commit b29a859

Please sign in to comment.