Skip to content

Commit

Permalink
Don't expose client
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 committed Jan 9, 2023
1 parent e6fabf1 commit 66a3417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ impl Connection {
}
}

/// Casts self to the underlying RPC client.
pub fn as_client(&self) -> &SubxtClient {
pub(super) fn as_client(&self) -> &SubxtClient {
&self.client
}
}
Expand Down
3 changes: 1 addition & 2 deletions aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ pub type Client = OnlineClient<AlephConfig>;
/// An alias for a hash type.
pub type BlockHash = H256;

/// An alias for an RPC client type.
pub type SubxtClient = OnlineClient<AlephConfig>;
type SubxtClient = OnlineClient<AlephConfig>;

pub use connections::{
Connection, ConnectionApi, RootConnection, SignedConnection, SignedConnectionApi, SudoCall,
Expand Down

0 comments on commit 66a3417

Please sign in to comment.