Skip to content

Commit

Permalink
doc: docstring nano -> atto
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Dec 30, 2024
1 parent c9e4bcc commit 420c10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ant-evm/src/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl AttoTokens {
Self(Amount::from(value))
}

/// Total AttoTokens expressed in number of nano tokens.
/// Total AttoTokens expressed in number of atto tokens.
pub fn as_atto(self) -> Amount {
self.0
}
Expand All @@ -65,7 +65,7 @@ impl AttoTokens {
self.0.checked_sub(rhs.0).map(Self::from_atto)
}

/// Converts the Nanos into bytes
/// Converts the AttoTokens into bytes
pub fn to_bytes(&self) -> Vec<u8> {
self.0.to_be_bytes::<32>().to_vec()
}
Expand Down

0 comments on commit 420c10b

Please sign in to comment.