has a parameter of bool[2]. I was expecting that a call to this should take the form [false,false] however I'm getting an error saying Invalid number of parameters for "yourFunction". Got 2 expected 1! What am I doing wrong?
Hmm that’s an interesting one, are you sure you are passing the parameter correctly to the function?
Thanks for the response. The function accepts bool[2] memory and is external. All it does is use the bools to assign some state variables, so nothing complex. No reason for it to throw an error as far as I can see
What's confusing me is the error message - what I posted is definitely an array as expected by bscscan, so why claim it's 2 parameters?
Обсуждают сегодня