Skip to content

Commit

Permalink
Export Client struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Mar 17, 2024
1 parent fcece84 commit 7f57318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/rpc/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use jsonrpsee::proc_macros::rpc;
/// trait interface for a custom rpc namespace: `validation`
///
/// This defines an additional namespace where all methods are configured as trait functions.
#[cfg_attr(not(test), rpc(server, namespace = "flashbots"))]
#[cfg_attr(test, rpc(server, client, namespace = "flashbots"))]
#[rpc(server, client, namespace = "flashbots")]
pub trait ValidationApi {
/// Validates a block submitted to the relay
#[method(name = "validateBuilderSubmissionV3")]
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub use crate::rpc::api::ValidationApiServer;
pub use crate::rpc::api::{ValidationApiClient, ValidationApiServer};
use async_trait::async_trait;
use jsonrpsee::core::RpcResult;
use jsonrpsee::types::error::ErrorCode;
Expand Down

0 comments on commit 7f57318

Please sign in to comment.