Skip to content

Commit 558a42c

Browse files
authored
Correct BTreeSet extraction (#4785)
1 parent 6708264 commit 558a42c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Contributed:
88

99
Changes:
1010

11+
- Extract metadata v14 `BTreeSet` types into correct type
1112
- Adjust `tx.paymentInfo` signing process
1213
- Add Kusama 9190 upgrade block
1314
- Add Westend 9200 upgrade block

packages/types/src/metadata/PortableRegistry/PortableRegistry.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@ export class PortableRegistry extends Struct implements ILookup {
557557
info: TypeDefInfo.BTreeMap,
558558
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
559559
});
560+
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
561+
return withTypeString(this.registry, {
562+
info: TypeDefInfo.BTreeSet,
563+
sub: this.#createSiDef(params[0].type.unwrap())
564+
});
560565
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
561566
return withTypeString(this.registry, {
562567
info: pathFirst === 'Range'

0 commit comments

Comments
 (0)