Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

debug output of ValueDef doesn't show type structure #84

Open
gilescope opened this issue May 5, 2022 · 0 comments
Open

debug output of ValueDef doesn't show type structure #84

gilescope opened this issue May 5, 2022 · 0 comments

Comments

@gilescope
Copy link

Which of these nodes is a Variant or a Primitive or a Composite or Named or Unnamed? I can guess... but it would be nice if the debug helped more by pointing out what ValueDef it is. It's not easy to match on stuff.

V1 (
    Value {
        value:  {
            parents: Value {
                value: U8(
                    0,
                ),
                context: TypeId(
                    2,
                ),
            },
            interior: Value {
                value: X1 (
                    Value {
                        value: Parachain (
                            Value {
                                value: U32(
                                    2012,
                                ),
                                context: TypeId(
                                    114,
                                ),
                            },
                        ),
                        context: TypeId(
                            113,
                        ),
                    },
                ),
                context: TypeId(
                    112,
                ),
            },
        },
        context: TypeId(
            111,
        ),
    },
)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant