You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to issue an RGB20 asset but encountering this error:
thread 'main' panicked at 'bug in business logic of type system. Details:
Union(
Ord(
0,
),
Unit,
)
Tuple(
UnnamedFields(
Confined(
[
SemId(
Array<32>(5cd0c3c0db677e225d50c0cd55a38fd2a79d3a29d625e34f78dfd6166c3cb806),
),
],
),
),
)', /home/zoe/.cargo/registry/src/github.com-1ecc6299db9ec823/strict_types-1.0.0/src/value/encode.rs:180:23
Yeah, this means that the ordering of the fields in a structure doesn't match the type requirement. Strict types are so strict and semantic that they see structures with the same fields but of different order as different types (since they would have different in-memory binary reprensentation, would produce different commitments etc).
I think what I need to do here is to:
Make error message more easy to understand (what's wrong)
Allow JSON data types to have a different field order and "make them straight" inside TypeSystem::typify procedure which converts non-typed StrictVal into a well-typed TypedVal.
I'm trying to issue an RGB20 asset but encountering this error:
As reported by the logs, the error comes from here. In rgb CLI the error comes from strict_serialize_type call.
I've managed to find the cause of the error, which is inverting order of
Nominal
keys in yaml file, for example:doesn't work (throws the reported error) while this:
works. @dr-orlovsky I don't know how to fix the issue but I hope I provided enough info to address it.
The text was updated successfully, but these errors were encountered: