Correct BTreeSet extraction (#4785)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user