From cc5a551a785f14ed3b4d2af05c92d8cc5fa4b164 Mon Sep 17 00:00:00 2001 From: rakita Date: Tue, 17 Sep 2024 20:24:23 +0200 Subject: [PATCH] fix snailtracer --- bins/revm-test/src/bin/snailtracer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bins/revm-test/src/bin/snailtracer.rs b/bins/revm-test/src/bin/snailtracer.rs index 3a874a44e0..803f2212e6 100644 --- a/bins/revm-test/src/bin/snailtracer.rs +++ b/bins/revm-test/src/bin/snailtracer.rs @@ -11,6 +11,7 @@ pub fn simple_example() { // BenchmarkDB is dummy state that implements Database trait. let mut evm = Evm::::builder() .with_db(BenchmarkDB::new_bytecode(bytecode.clone())) + .with_default_ext_ctx() .modify_tx_env(|tx| { // execution globals block hash/gas_limit/coinbase/timestamp.. tx.caller = address!("1000000000000000000000000000000000000000");