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