The issue is that sizeof("uint") returns 5 and not 4 as you expected.
The sizeof operator for string literals counts the terminating \0
I would even remove the sizeof part in the string comparison for the types address, string, bool because the don't have specific length variations, but up to you, to decide.
The issue is that
sizeof("uint")
returns 5 and not 4 as you expected.The sizeof operator for string literals counts the terminating
\0
I would even remove the sizeof part in the string comparison for the types
address, string, bool
because the don't have specific length variations, but up to you, to decide.