diff --git a/crates/rpc/rpc-api/src/lib.rs b/crates/rpc/rpc-api/src/lib.rs index b7f04545d31c..196a4f4ec1ad 100644 --- a/crates/rpc/rpc-api/src/lib.rs +++ b/crates/rpc/rpc-api/src/lib.rs @@ -53,7 +53,7 @@ pub mod servers { }; pub use reth_rpc_eth_api::{ self as eth, EthApiServer, EthBundleApiServer, EthCallBundleApiServer, EthFilterApiServer, - EthPubSubApiServer, L2EthApiExtServer + EthPubSubApiServer, L2EthApiExtServer, }; } @@ -83,6 +83,7 @@ pub mod clients { web3::Web3ApiClient, }; pub use reth_rpc_eth_api::{ - EthApiClient, EthBundleApiClient, EthCallBundleApiClient, EthFilterApiClient, L2EthApiExtServer + EthApiClient, EthBundleApiClient, EthCallBundleApiClient, EthFilterApiClient, + L2EthApiExtServer, }; } diff --git a/crates/rpc/rpc-eth-api/src/ext.rs b/crates/rpc/rpc-eth-api/src/ext.rs index e70b5f975919..2dee4df02429 100644 --- a/crates/rpc/rpc-eth-api/src/ext.rs +++ b/crates/rpc/rpc-eth-api/src/ext.rs @@ -9,8 +9,11 @@ use jsonrpsee::{core::RpcResult, proc_macros::rpc}; #[cfg_attr(not(feature = "client"), rpc(server, namespace = "eth"))] #[cfg_attr(feature = "client", rpc(server, client, namespace = "eth"))] pub trait L2EthApiExt { - /// Sends signed transaction with the given condition. #[method(name = "sendRawTransactionConditional")] - async fn send_raw_transaction(&self, bytes: Bytes, condtion: ConditionalOptions) -> RpcResult; + async fn send_raw_transaction_conditional( + &self, + bytes: Bytes, + condition: ConditionalOptions, + ) -> RpcResult; } diff --git a/crates/rpc/rpc-eth-api/src/lib.rs b/crates/rpc/rpc-eth-api/src/lib.rs index fd113ec9cc2d..d96a937cc5dc 100644 --- a/crates/rpc/rpc-eth-api/src/lib.rs +++ b/crates/rpc/rpc-eth-api/src/lib.rs @@ -14,17 +14,17 @@ pub mod bundle; pub mod core; +pub mod ext; pub mod filter; pub mod helpers; pub mod node; pub mod pubsub; pub mod types; -pub mod ext; pub use bundle::{EthBundleApiServer, EthCallBundleApiServer}; pub use core::{EthApiServer, FullEthApiServer}; -pub use filter::EthFilterApiServer; pub use ext::L2EthApiExtServer; +pub use filter::EthFilterApiServer; pub use node::{RpcNodeCore, RpcNodeCoreExt}; pub use pubsub::EthPubSubApiServer; pub use reth_rpc_eth_types::error::{ @@ -38,8 +38,8 @@ pub use bundle::{EthBundleApiClient, EthCallBundleApiClient}; #[cfg(feature = "client")] pub use core::EthApiClient; #[cfg(feature = "client")] -pub use filter::EthFilterApiClient; -#[cfg(feature = "client")] pub use ext::L2EthApiExtClient; +#[cfg(feature = "client")] +pub use filter::EthFilterApiClient; use reth_trie_common as _;