I have a contract in which there is a function which has 16 arguments which is giving me stack too deep
error. So I am thinking of passing a javascript object using web3 to the smart contract which I will destructure in the method. So here I have two questions:
How to pass a javascript object using web3 to a smart contract?
How to destructure the object in a smart contract with each field having its respective values?