Skip to content

Commit

Permalink
fix blob shares_len doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Dec 19, 2024
1 parent 6b6b820 commit 201f091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ impl Blob {
/// # use celestia_types::nmt::Namespace;
/// # let namespace = Namespace::new_v0(&[1, 2, 3, 4, 5]).expect("Invalid namespace");
///
/// let blob = Blob::new(namespace1, b"foo".to_vec(), AppVersion::V3).unwrap();
/// let blob = Blob::new(namespace, b"foo".to_vec(), AppVersion::V3).unwrap();
/// let shares_len = blob.shares_len();
///
/// let blob_shares = blob.to_shares();
/// let blob_shares = blob.to_shares().unwrap();
///
/// assert_eq!(shares_len, blob_shares.len());
/// ```
Expand Down

0 comments on commit 201f091

Please sign in to comment.