Skip to content

Commit

Permalink
Expose transaction::TransactionProgress as public (#401)
Browse files Browse the repository at this point in the history
* Update transaction.rs

* documentation

* Update src/transaction.rs

Co-authored-by: James Wilson <[email protected]>

* fmt

Co-authored-by: James Wilson <[email protected]>
  • Loading branch information
boyswan and jsdw authored Jan 19, 2022
1 parent b358d6f commit 79bf32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ pub struct TransactionProgress<'client, T: Config> {
impl<'client, T: Config> Unpin for TransactionProgress<'client, T> {}

impl<'client, T: Config> TransactionProgress<'client, T> {
pub(crate) fn new(
/// Instantiate a new [`TransactionProgress`] from a custom subscription.
pub fn new(
sub: RpcSubscription<SubstrateTransactionStatus<T::Hash, T::Hash>>,
client: &'client Client<T>,
ext_hash: T::Hash,
Expand Down

0 comments on commit 79bf32a

Please sign in to comment.