Hello Friends
i am stuck in call function
function addBeneficiaries(address[] memory _beneficiaries, VestingPeriod[][] memory _vestingPeriods)
external
onlyAdmin
setupOnly
{
So in "_vestingPeriods" parameter which value and how i can pass any values
any on can help me ?
Sep 17, 2021, 10:12 AM
can you Screenshot your code
Sep 17, 2021, 10:24 AM
Sep 17, 2021, 10:45 AM
This looks like a mapping and in the mapping an array of struct
Sep 17, 2021, 10:46 AM
ok i have no any idea for that second param, which value i can put into that and call this function.
Sep 17, 2021, 10:48 AM
you should pass a two-dimensional matrix.. but I don` t really get how it could look like
Sep 17, 2021, 10:52 AM
Yah.. Tried multiple variation of 2x array.. But etherscan UI as well as custom web3.js script js not allowing..
It keeps throwing error shown in screenshot.. Tuple is not valid
It keeps throwing error shown in screenshot.. Tuple is not valid
@jiyanilalji you have screenshot of exat error in etherscan
Sep 17, 2021, 10:54 AM
ok
Sep 17, 2021, 10:55 AM
Pls try [[1,1]]
Sep 17, 2021, 10:56 AM
Sep 17, 2021, 10:57 AM
This is the error😅
Sep 17, 2021, 10:57 AM
I don`t get what`s the tuple thing, haven`t seen it in the code
Sep 17, 2021, 11:00 AM
[[],[]]
Sep 17, 2021, 11:00 AM
yes already tried that
same error
Sep 17, 2021, 11:01 AM
Then will advill you manually pass in the data instead of using struct.
Like
(tupple, vestingday, vestingpayday)
(tupple, vestingday, vestingpayday)
Sep 17, 2021, 11:02 AM
ok
Sep 17, 2021, 11:05 AM
This vestingPeriod is a single struct so the value should be a single []
Sep 17, 2021, 11:09 AM