Add typeAlias to API construction options (#1989)

This commit is contained in:
Jaco Greeff
2020-03-02 15:52:14 +01:00
committed by GitHub
parent 7e0283d7c0
commit 586c90208c
8 changed files with 114 additions and 32 deletions
@@ -71,7 +71,7 @@ export default function toLatest (registry: Registry, { modules, extrinsic }: Me
modules: modules.map((mod): ModuleMetadataLatest => {
const calls = mod.calls.unwrapOr(null);
const storage = mod.storage.unwrapOr(null);
const sectionTypes = getModuleTypes(stringCamelCase(mod.name.toString()));
const sectionTypes = getModuleTypes(registry, stringCamelCase(mod.name.toString()));
return registry.createType('ModuleMetadataLatest', {
...mod,