-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
- Loading branch information
Showing
5 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use reth_evm::ConfigureEvm; | ||
use reth_primitives::{ | ||
revm_primitives::{BlockEnv, OptimismFields, TxEnv}, | ||
Bytes, | ||
}; | ||
use reth_rpc_eth_api::helpers::Call; | ||
use reth_rpc_eth_types::EthResult; | ||
use reth_rpc_types::TransactionRequest; | ||
|
||
use crate::OpEthApi; | ||
|
||
impl<Eth: Call> Call for OpEthApi<Eth> { | ||
fn call_gas_limit(&self) -> u64 { | ||
self.inner.call_gas_limit() | ||
} | ||
|
||
fn evm_config(&self) -> &impl ConfigureEvm { | ||
self.inner.evm_config() | ||
} | ||
|
||
fn create_txn_env( | ||
&self, | ||
block_env: &BlockEnv, | ||
request: TransactionRequest, | ||
) -> EthResult<TxEnv> { | ||
let mut env = Eth::create_txn_env(&self.inner, block_env, request)?; | ||
|
||
env.optimism = OptimismFields { enveloped_tx: Some(Bytes::new()), ..Default::default() }; | ||
|
||
Ok(env) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters