0

this is the function :

  function setListObjects(ContractObject[] memory ContractObjects)public{
    delete objects;
    ContractObject memory newObject;
    for (uint i = 0; i < ContractObjects.length; i++) {
        newObject = ContractObject({
            id:objects.length+1,
            title:ContractObjects[i].title,
            description:ContractObjects[i].description
            });
        objects.push(newObject);
    }
}

but when i generate java class with web3j there is an error Unsupported type encountered: tuple the problem that in my application i have to set all the array in one transaction . So what is the solution ?

  • Well if you have a problem on you web3 client side, then you should probably post your web3 client code. – goodvibration May 6 '19 at 11:00
  • the problem is when generating the client class java with web3j . The web3 client code is not generated yet . – fal hmed May 6 '19 at 11:07
  • I think web3j dont support this yet, giving struct as parameter was not possible before – Majd TL May 7 '19 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.