Skip to content

Commit

Permalink
introduce standalone estimate gas type (#12344)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
stevencartavia and mattsse authored Nov 14, 2024
1 parent 7bd7c37 commit 5c655e4
Show file tree
Hide file tree
Showing 6 changed files with 391 additions and 350 deletions.
12 changes: 10 additions & 2 deletions crates/optimism/rpc/src/eth/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use alloy_rpc_types_eth::transaction::TransactionRequest;
use reth_evm::ConfigureEvm;
use reth_primitives::revm_primitives::{BlockEnv, OptimismFields, TxEnv};
use reth_rpc_eth_api::{
helpers::{Call, EthCall, LoadPendingBlock, LoadState, SpawnBlocking},
helpers::{estimate::EstimateCall, Call, EthCall, LoadPendingBlock, LoadState, SpawnBlocking},
FromEthApiError, IntoEthApiError, RpcNodeCore,
};
use reth_rpc_eth_types::{revm_utils::CallFees, RpcInvalidTransactionError};
Expand All @@ -13,7 +13,15 @@ use crate::{OpEthApi, OpEthApiError};

impl<N> EthCall for OpEthApi<N>
where
Self: Call + LoadPendingBlock,
Self: EstimateCall + LoadPendingBlock,
N: RpcNodeCore,
{
}

impl<N> EstimateCall for OpEthApi<N>
where
Self: Call,
Self::Error: From<OpEthApiError>,
N: RpcNodeCore,
{
}
Expand Down
Loading

0 comments on commit 5c655e4

Please sign in to comment.