0

Let's say I have a struct like this:

  struct MyType {
    address token;
    uint256 amount;
  }

  function hello(MyType[]) external {
...

What would my function signature (and, therefore, function selector) look like?

"hello(??)"

1 Answer 1

0

You'd wrap the primative types in parenthesis and put brackets after them.

For example:

cast sig "hello((address,uint256)[])"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.