Erc1155Contract constructor
Erc1155Contract(
- String contractAddress
Implementation
Erc1155Contract(
this.contractAddress,
) {
final contractAddress = EthereumAddress.fromHex(this.contractAddress);
contract =
DeployedContract(ContractAbi.fromJson(erc1155Abi, ''), contractAddress);
balanceOfFunc = contract.function('balanceOf');
batchBalanceOfFunc = contract.function('balanceOfBatch');
setApprovalForAllFunc = contract.function('setApprovalForAll');
isApprovedForAllFunc = contract.function('isApprovedForAll');
safeTransferFromFunc = contract.function('safeTransferFrom');
safeBatchTransferFromFunc = contract.function('safeBatchTransferFrom');
}