hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

fix: report schema type id in no_extra_or_missing_schemas test #5054

Closed DCNick3 closed 1 month ago

DCNick3 commented 1 month ago

Context

Fixes #5041.

Solution

Error before ``` Missing types: { ( "CompoundPredicate", Enum( EnumMeta { variants: [ EnumVariant { tag: "Atom", discriminant: 0, ty: Some( TypeId { t: ( 10095233817367655734, 3465063886364562919, ), }, ), }, EnumVariant { tag: "Not", discriminant: 1, ty: Some( TypeId { t: ( 14448333017410507765, 1039736120081770805, ), }, ), }, EnumVariant { tag: "And", discriminant: 2, ty: Some( TypeId { t: ( 13976757441058666220, 14378548965820588092, ), }, ), }, EnumVariant { tag: "Or", discriminant: 3, ty: Some( TypeId { t: ( 13976757441058666220, 14378548965820588092, ), }, ), }, ], }, ), ), } ```
Error after ``` Missing types: { MetaMapEntry { type_id: "Box>", type_name: "CompoundPredicate", metadata: Enum( EnumMeta { variants: [ EnumVariant { tag: "Atom", discriminant: 0, ty: Some( TypeId { t: ( 5033077372577703197, 9237201265375853478, ), }, ), }, EnumVariant { tag: "Not", discriminant: 1, ty: Some( TypeId { t: ( 1071909541625897376, 5461414499519987801, ), }, ), }, EnumVariant { tag: "And", discriminant: 2, ty: Some( TypeId { t: ( 2726655154496140060, 54165042778783804, ), }, ), }, EnumVariant { tag: "Or", discriminant: 3, ty: Some( TypeId { t: ( 2726655154496140060, 54165042778783804, ), }, ), }, ], }, ), }, } ```

Checklist