Replies: 2 comments 8 replies
-
Looks fine, empty arrays would probably be due to UI bugs, which shouldn't happen too often. The worse they'll do is consume some gas for the non-state-altering tx. Maybe it's worth looking into what others do when expecting this type of arrays as params? |
Beta Was this translation helpful? Give feedback.
2 replies
-
@andreivladbrg could you please research what OpenZeppelin does with zero-length arrays so we can make a decision about this? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There would be a few benefits:
I can't think of any major downside.
Beta Was this translation helpful? Give feedback.
All reactions