Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FredCoen committed Jan 30, 2025
1 parent 74222aa commit ba4e64e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions examples/instruction_table_override/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use database::{BenchmarkDB, FFADDRESS};
use revm::{
context::Context,
primitives::TxKind,
state::Bytecode,
};
use crate::exec::transact_custom_opcode;
use database::{BenchmarkDB, FFADDRESS};
use revm::{context::Context, primitives::TxKind, state::Bytecode};

pub mod exec;
pub mod handler;
Expand All @@ -23,11 +19,10 @@ fn main() {
.into(),
);


let mut ctx = Context::builder()
.with_db(BenchmarkDB::new_bytecode(bytecode)) // Store bytecode in DB
.with_db(BenchmarkDB::new_bytecode(bytecode))
.modify_tx_chained(|tx| {
tx.kind = TxKind::Call(FFADDRESS); // Call the address where bytecode is stored
tx.kind = TxKind::Call(FFADDRESS);
});

let result = transact_custom_opcode(&mut ctx).expect("execution failed");
Expand Down

0 comments on commit ba4e64e

Please sign in to comment.