From 1b338d4a7d1e79bb769617cfe8b23d9beb2d3faf Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Mon, 1 May 2023 07:39:07 +0200 Subject: [PATCH] metadata: fix format of constants --- src/kaitai_structures/item.ksy | 27 ----------------------- src/kaitai_structures/pallet_constant.ksy | 13 +++++------ 2 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 src/kaitai_structures/item.ksy diff --git a/src/kaitai_structures/item.ksy b/src/kaitai_structures/item.ksy deleted file mode 100644 index 79bd8dc82..000000000 --- a/src/kaitai_structures/item.ksy +++ /dev/null @@ -1,27 +0,0 @@ -meta: - id: item - title: - endian: le - imports: - - scale - - storage_definition -seq: - - id: name - type: scale::string - - - id: modifier - type: u1 - enum: storage_modifier - - - id: definition - type: storage_definition - - - id: fallback - type: scale::bytes - - - id: docs - type: scale::string_list -enums: - storage_modifier: - 0: optional - 1: default \ No newline at end of file diff --git a/src/kaitai_structures/pallet_constant.ksy b/src/kaitai_structures/pallet_constant.ksy index 1915229d1..d87afe57b 100644 --- a/src/kaitai_structures/pallet_constant.ksy +++ b/src/kaitai_structures/pallet_constant.ksy @@ -4,13 +4,12 @@ meta: endian: le imports: - scale - - item seq: - - id: prefix + - id: name type: scale::string - - id: num_items + - id: type type: scale::compact_int - - id: items - type: item - repeat: expr - repeat-expr: num_items.value \ No newline at end of file + - id: value + type: scale::bytes + - id: docs + type: scale::string_list