From f93599d888bc074d5aa83801476aa520fb868a61 Mon Sep 17 00:00:00 2001 From: Maxime Chabert Date: Tue, 12 Jul 2022 19:58:07 +0200 Subject: [PATCH] Update abiRegistry types type --- src/smartcontracts/typesystem/abiRegistry.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smartcontracts/typesystem/abiRegistry.ts b/src/smartcontracts/typesystem/abiRegistry.ts index ecb3377bb..07e4eaaea 100644 --- a/src/smartcontracts/typesystem/abiRegistry.ts +++ b/src/smartcontracts/typesystem/abiRegistry.ts @@ -11,13 +11,13 @@ export class AbiRegistry { readonly interfaces: ContractInterface[] = []; readonly customTypes: CustomType[] = []; - static create(json: { name: string; endpoints: any[]; types: any[] }): AbiRegistry { + static create(json: { name: string; endpoints: any[]; types: Record }): AbiRegistry { let registry = new AbiRegistry().extend(json); let remappedRegistry = registry.remapToKnownTypes(); return remappedRegistry; } - private extend(json: { name: string; endpoints: any[]; types: any[] }): AbiRegistry { + private extend(json: { name: string; endpoints: any[]; types: Record }): AbiRegistry { json.types = json.types || {}; // The "endpoints" collection is interpreted by "ContractInterface".