decimals method
Gets the Decimal of the specified address.
Implementation
Future<String> decimals(String decimals_) async {
final EthereumAddress contractAddr = EthereumAddress.fromHex(decimals_);
final contract = DeployedContract(
ContractAbi.fromJson(abiString, 'XRC20'), contractAddr);
final tokenDecimals = contract.function('decimals');
final decimals = await client
.call(contract: contract, function: tokenDecimals, params: []);
return ('$decimals');
}