Non-aliased CallEvent type extraction (#4502)

* Non-aliased CallEvent type extraction

* Update packages/types/src/metadata/PortableRegistry/PortableRegistry.ts
This commit is contained in:
Jaco
2022-01-25 17:01:57 +02:00
committed by GitHub
parent 0dca7bacc2
commit a650ae195e
3 changed files with 36 additions and 11 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
const registry = new TypeRegistry();
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
const latest = getLatestMeta(registry, json);
const lookup = registry.createType('PortableRegistry', { types: latest.types });
const lookup = registry.createType('PortableRegistry', { types: latest.types }, true);
// attach the lookup to the registry - now the types are known
registry.setLookup(lookup);