Erc721Contract constructor
Erc721Contract(
- String contractAddress
Implementation
Erc721Contract(
this.contractAddress,
) {
final contractAddress = EthereumAddress.fromHex(this.contractAddress);
contract =
DeployedContract(ContractAbi.fromJson(erc721Abi, ''), contractAddress);
balanceOfFunc = contract.function('balanceOf');
ownerOfFunc = contract.function('ownerOf');
safeTransferFromFunc =
contract.findFunctionsByName('safeTransferFrom').first;
approveFunc = contract.function('approve');
setApprovalForAllFunc = contract.function('setApprovalForAll');
getApprovedFunc = contract.function('getApproved');
isApprovedForAllFunc = contract.function('isApprovedForAll');
}