Skip to content

Commit

Permalink
feat: extended WithdrawReason
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Oct 2, 2023
1 parent 1c2719e commit e99be63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,12 @@ where
config: &evm::Config,
) -> Result<CallInfo, RunnerError<Self::Error>> {
let reason = WithdrawReason::Call {
max_fee_per_gas,
gas_limit,
target,
input: input.clone(),
is_transactional,
is_check: false,
};
if validate {
Self::validate(
Expand Down
9 changes: 8 additions & 1 deletion primitives/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,14 @@ pub struct ExecutionInfo<T> {
// Unique:
#[derive(Debug, Clone)]
pub enum WithdrawReason {
Call { target: H160, input: Vec<u8> },
Call {
max_fee_per_gas: Option<U256>,
gas_limit: u64,
target: H160,
input: Vec<u8>,
is_transactional: bool,
is_check: bool,
},
Create,
Create2,
}
Expand Down

0 comments on commit e99be63

Please sign in to comment.