Query balance overflow
Closed this issue · 1 comments
miaobei5555 commented
TRC20ContractClient
var balance = Convert.ToDecimal(result.Balance);
if (decimals > 0)
{
balance /= Convert.ToDecimal(Math.Pow(10, decimals));
}
Change to
var balance = Nethereum.Web3.Web3.Convert.FromWeiToBigDecimal(result.Balance);
return decimal.Parse(balance.ToString());
stoway commented
Thanks!