but it's not ideal. Ideally the fix would make this totally invisible to end-users and have Foo::single be of type uint directly with the array part just being a serialization detail.
210 addresses this for basic groups but the issue remains for other types e.g. [uint]. This is lower priority because the only time we've seen single element arrays like this in Cardano was for basic groups.
is treated as:
As per the CDDL RFC:
You can work around this by doing:
but it's not ideal. Ideally the fix would make this totally invisible to end-users and have
Foo::single
be of typeuint
directly with the array part just being a serialization detail.