pragma solidity ^0.4.21;
pragma experimental ABIEncoderV2;
function getPurchaseOrderForVendor(string vendorNameInput) constant returns (PurchaseOrderStruct[])
I am returning an array of struct from solidity function as given above. It is compiled to abi and bin files. The issue is with creating wrapper files for the contract using web3j(v3.3.1). I'm getting the below errors:
Generating com.contract.InvoiceSettlement_sol_InvoiceSettlement ...
Exception in thread "main" java.lang.UnsupportedOperationException:
Unsupported type
encountered: tuple
at org.web3j.abi.datatypes.generated.AbiTypes.getType(AbiTypes.java:221)
at org.web3j.codegen.SolidityFunctionWrapper.buildTypeName(SolidityFunct
ionWrapper.java:851)