Lazy reaping types & updates (#1914)
* Lazy reaping types & updates * system.account queries * AccountInfo -> ContractAccountInfo tests
This commit is contained in:
@@ -95,7 +95,7 @@ export function createImports (importDefinitions: Record<string, object>, { type
|
||||
|
||||
Object.keys(moduleDef.types).forEach((type): void => {
|
||||
if (typeToModule[type]) {
|
||||
throw new Error(`Duplicated type: ${type}. Modules: ${name}, ${typeToModule[type]}`);
|
||||
throw new Error(`Duplicated type: ${type}, found in: ${name}, ${typeToModule[type]}`);
|
||||
}
|
||||
|
||||
typeToModule[type] = name;
|
||||
|
||||
Reference in New Issue
Block a user