Array as an input to a function

sajeev_khansajeev_khan Member Posts: 1
Hi There,
I am passing an array as an argument to a function that uses the array elements to change the state of the contract. However, on executing the function in browser solidity, the result is "Waiting for transaction to be mined..." for a few minutes and then the browser solidity snaps
Is array supported as an input argument of a function?
I am passing a fixed length array as input

Comments

  • VladWulfVladWulf Member Posts: 8
    No it is not, at least not for public functions.

    You can however use the es6 destructuring operator ( ...[args]) in javascript es6 (if you call your contract via web3.js).
Sign In or Register to comment.