Correct BTreeSet extraction (#4785)

This commit is contained in:
Jaco
2022-04-30 14:18:45 +03:00
committed by GitHub
parent 6708264688
commit 558a42c6ed
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ Contributed:
Changes:
- Extract metadata v14 `BTreeSet` types into correct type
- Adjust `tx.paymentInfo` signing process
- Add Kusama 9190 upgrade block
- Add Westend 9200 upgrade block
@@ -557,6 +557,11 @@ export class PortableRegistry extends Struct implements ILookup {
info: TypeDefInfo.BTreeMap,
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
});
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
return withTypeString(this.registry, {
info: TypeDefInfo.BTreeSet,
sub: this.#createSiDef(params[0].type.unwrap())
});
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
return withTypeString(this.registry, {
info: pathFirst === 'Range'