Skip to content

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

@gilescope

Description

@gilescope

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,
        ),
    },
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions