Skip to content

Commit

Permalink
Expose genesis hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Jun 5, 2020
1 parent 414142e commit a781d3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ impl<T: System, S, E> Clone for Client<T, S, E> {
}

impl<T: System, S, E> Client<T, S, E> {
/// Returns the genesis hash.
pub fn genesis(&self) -> &T::Hash {
&self.genesis_hash
}

/// Returns the chain metadata.
pub fn metadata(&self) -> &Metadata {
&self.metadata
Expand Down

0 comments on commit a781d3d

Please sign in to comment.