mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
chore(rpc-eth-types): use FillTransaction from alloy (#19890)
This commit is contained in:
@@ -18,7 +18,7 @@ use alloy_serde::JsonStorageKey;
|
||||
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
|
||||
use reth_primitives_traits::TxTy;
|
||||
use reth_rpc_convert::RpcTxReq;
|
||||
use reth_rpc_eth_types::FillTransactionResult;
|
||||
use reth_rpc_eth_types::FillTransaction;
|
||||
use reth_rpc_server_types::{result::internal_rpc_err, ToRpcResult};
|
||||
use tracing::trace;
|
||||
|
||||
@@ -242,7 +242,7 @@ pub trait EthApi<
|
||||
|
||||
/// Fills the defaults on a given unsigned transaction.
|
||||
#[method(name = "fillTransaction")]
|
||||
async fn fill_transaction(&self, request: TxReq) -> RpcResult<FillTransactionResult<RawTx>>;
|
||||
async fn fill_transaction(&self, request: TxReq) -> RpcResult<FillTransaction<RawTx>>;
|
||||
|
||||
/// Simulate arbitrary number of transactions at an arbitrary blockchain index, with the
|
||||
/// optionality of state overrides
|
||||
@@ -703,7 +703,7 @@ where
|
||||
async fn fill_transaction(
|
||||
&self,
|
||||
request: RpcTxReq<T::NetworkTypes>,
|
||||
) -> RpcResult<FillTransactionResult<TxTy<T::Primitives>>> {
|
||||
) -> RpcResult<FillTransaction<TxTy<T::Primitives>>> {
|
||||
trace!(target: "rpc::eth", ?request, "Serving eth_fillTransaction");
|
||||
Ok(EthTransactions::fill_transaction(self, request).await?)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ use reth_rpc_convert::{transaction::RpcConvert, RpcTxReq};
|
||||
use reth_rpc_eth_types::{
|
||||
utils::{binary_search, recover_raw_transaction},
|
||||
EthApiError::{self, TransactionConfirmationTimeout},
|
||||
FillTransactionResult, SignError, TransactionSource,
|
||||
FillTransaction, SignError, TransactionSource,
|
||||
};
|
||||
use reth_storage_api::{
|
||||
BlockNumReader, BlockReaderIdExt, ProviderBlock, ProviderReceipt, ProviderTx, ReceiptProvider,
|
||||
@@ -450,7 +450,7 @@ pub trait EthTransactions: LoadTransaction<Provider: BlockReaderIdExt> {
|
||||
fn fill_transaction(
|
||||
&self,
|
||||
mut request: RpcTxReq<Self::NetworkTypes>,
|
||||
) -> impl Future<Output = Result<FillTransactionResult<TxTy<Self::Primitives>>, Self::Error>> + Send
|
||||
) -> impl Future<Output = Result<FillTransaction<TxTy<Self::Primitives>>, Self::Error>> + Send
|
||||
where
|
||||
Self: EthApiSpec + LoadBlock + EstimateCall + LoadFee,
|
||||
{
|
||||
@@ -511,7 +511,7 @@ pub trait EthTransactions: LoadTransaction<Provider: BlockReaderIdExt> {
|
||||
|
||||
let raw = tx.encoded_2718().into();
|
||||
|
||||
Ok(FillTransactionResult { raw, tx })
|
||||
Ok(FillTransaction { raw, tx })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user