From 420c10bb68fff73cf4fe7d8031943cd70ba706b6 Mon Sep 17 00:00:00 2001 From: David Irvine Date: Mon, 30 Dec 2024 16:38:24 +0000 Subject: [PATCH] doc: docstring nano -> atto --- ant-evm/src/amount.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ant-evm/src/amount.rs b/ant-evm/src/amount.rs index 9941769891..ac2c9431ff 100644 --- a/ant-evm/src/amount.rs +++ b/ant-evm/src/amount.rs @@ -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 } @@ -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 { self.0.to_be_bytes::<32>().to_vec() }