Skip to content

Commit

Permalink
Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Aug 1, 2023
1 parent a6453af commit 360df6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/celestia/src/verifier/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl AsRef<[u8]> for CelestiaAddress {

/// Decodes slice of bytes into CelestiaAddress
/// Treats it as string if it starts with HRP and the rest is valid ASCII
/// Otherwise just checks if it contains valid `u5` elements and has correct length.
/// Otherwise just checks if it contains valid `u5` elements and has the correct length.
impl<'a> TryFrom<&'a [u8]> for CelestiaAddress {
type Error = anyhow::Error;

Expand All @@ -39,7 +39,7 @@ impl<'a> TryFrom<&'a [u8]> for CelestiaAddress {
return CelestiaAddress::from_str(s).map_err(|e| anyhow::anyhow!("{}", e));
}
if value.len() != 32 {
anyhow::bail!("Address must be 32 u5 long");
anyhow::bail!("An address must be 32 u5 long");
}
let mut raw_address = [0u8; 32];
for (idx, &item) in value.iter().enumerate() {
Expand Down

0 comments on commit 360df6c

Please sign in to comment.