totalSupply method
Gets the totalSupply of the specified address.
Implementation
Future<String> totalSupply(String tokenAddr_) async {
final EthereumAddress contractAddr = EthereumAddress.fromHex(tokenAddr_);
final contract =
DeployedContract(ContractAbi.fromJson(abiFile, 'XRC721'), contractAddr);
final tokenTotalSupply = contract.function('totalSupply');
final totalSupply = await client
.call(contract: contract, function: tokenTotalSupply, params: []);
return ('$totalSupply');
}