Skip to content

Commit

Permalink
Make AsConnection and AsSigned visible outside aleph-client (#861)
Browse files Browse the repository at this point in the history
* pub use for AsConnection and SignedConnection

* bump
  • Loading branch information
krzysztofziobro committed Jan 13, 2023
1 parent e818f83 commit 585a842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ pub struct RootConnection {

/// Castability to a plain connection.
pub trait AsConnection {
/// Allows cast to [`Connection`] reference
fn as_connection(&self) -> &Connection;
}

/// Castability to a signed connection.
pub trait AsSigned {
/// Allows cast to [`SignedConnection`] reference
fn as_signed(&self) -> &SignedConnection;
}

Expand Down
3 changes: 2 additions & 1 deletion aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ pub type TxHash = H256;
pub type SubxtClient = OnlineClient<AlephConfig>;

pub use connections::{
Connection, ConnectionApi, RootConnection, SignedConnection, SignedConnectionApi, SudoCall,
AsConnection, AsSigned, Connection, ConnectionApi, RootConnection, SignedConnection,
SignedConnectionApi, SudoCall,
};

/// When submitting a transaction, wait for given status before proceeding.
Expand Down

0 comments on commit 585a842

Please sign in to comment.