--- a/pallets/balances-adapter/src/erc.rs +++ b/pallets/balances-adapter/src/erc.rs @@ -58,8 +58,8 @@ fn balance_of(&self, owner: Address) -> Result { // self.consume_store_reads(1)?; let owner = T::CrossAccountId::from_eth(owner); - let a = ::Currency::free_balance(owner.as_sub()); - Ok(a.into()) + let balance = ::Currency::free_balance(owner.as_sub()); + Ok(balance.into()) } fn decimals(&self) -> Result { @@ -76,8 +76,8 @@ fn total_supply(&self) -> Result { // self.consume_store_reads(1)?; - // Ok(>::get(self.id).into()) - todo!() + let total = ::Currency::total_issuance(); + Ok(total.into()) } // #[weight(>::transfer())]