Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ pub struct RootConnection {
connection: SignedConnection,
}

pub(crate) trait AsConnection {
/// Castability to a plain connection.
pub trait AsConnection {
fn as_connection(&self) -> &Connection;
}

pub(crate) trait AsSigned {
/// Castability to a signed connection.
pub trait AsSigned {
fn as_signed(&self) -> &SignedConnection;
}

Expand Down Expand Up @@ -337,7 +339,7 @@ impl Connection {
}
}

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

pub(crate) type SubxtClient = OnlineClient<AlephConfig>;
type SubxtClient = OnlineClient<AlephConfig>;

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