Erc20Contract constructor
Erc20Contract(
- String contractAddress
Implementation
Erc20Contract(
this.contractAddress,
) {
final contractAddress = EthereumAddress.fromHex(this.contractAddress);
contract =
DeployedContract(ContractAbi.fromJson(erc20Abi, ''), contractAddress);
balanceOfFunc = contract.function('balanceOf');
transferFunc = contract.function('transfer');
approveFunc = contract.function('approve');
}