Expose extracted type names in PortableRegistry

This commit is contained in:
Jaco
2021-10-21 07:33:10 +03:00
parent e47b8c1e73
commit 0d5a841a81
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -2,9 +2,14 @@
## master
Contributed:
- Add `Auction` to Polkadot pre-0.9.11 `ProxyType` (Thnaks to https://github.com/wirednkod)
Changes:
- Fix browser bundle imports for xcm-mapping (move to `types-known`)
- Expose all extracted type names in `PortableRegistry`
## 6.4.2 Oct 18, 2021
@@ -252,6 +252,10 @@ export class GenericPortableRegistry extends Struct {
this.#types = extractTypeMap(this.types);
}
public get names (): string[] {
return Object.values(this.#names);
}
/**
* @description The types of the registry
*/