Skip to content

Commit

Permalink
Unify interpreter::call_create and interpreter::trap
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Dec 6, 2023
1 parent d2a21ce commit 675195e
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 493 deletions.
483 changes: 0 additions & 483 deletions interpreter/src/call_create.rs

This file was deleted.

2 changes: 1 addition & 1 deletion interpreter/src/etable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
call_create::CallCreateTrap, eval::*, ExitResult, GasState, Machine, Opcode, RuntimeBackend,
eval::*, trap::CallCreateTrap, ExitResult, GasState, Machine, Opcode, RuntimeBackend,
RuntimeEnvironment, RuntimeState, TrapConstruct,
};
use core::marker::PhantomData;
Expand Down
2 changes: 1 addition & 1 deletion interpreter/src/eval/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod misc;
mod system;

use crate::{
call_create::CallCreateTrap, Control, ExitException, ExitSucceed, GasState, Machine, Opcode,
trap::CallCreateTrap, Control, ExitException, ExitSucceed, GasState, Machine, Opcode,
RuntimeBackend, RuntimeEnvironment, RuntimeState, TrapConstruct,
};
use core::ops::{BitAnd, BitOr, BitXor};
Expand Down
3 changes: 1 addition & 2 deletions interpreter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

extern crate alloc;

pub mod call_create;
mod error;
mod etable;
pub mod eval;
Expand All @@ -15,7 +14,7 @@ mod memory;
mod opcode;
mod runtime;
mod stack;
mod trap;
pub mod trap;
pub mod utils;
mod valids;

Expand Down
Loading

0 comments on commit 675195e

Please sign in to comment.