diff --git a/packages/proto-signing/src/registry.ts b/packages/proto-signing/src/registry.ts index 760db180..1e979c4f 100644 --- a/packages/proto-signing/src/registry.ts +++ b/packages/proto-signing/src/registry.ts @@ -97,12 +97,12 @@ export class Registry { */ public constructor(customTypes?: Iterable<[string, GeneratedType]>) { const { cosmosCoin, cosmosMsgSend } = defaultTypeUrls; - this.types = customTypes ? new Map([ - ...customTypes - ]) : new Map([ - [cosmosCoin, Coin], - [cosmosMsgSend, MsgSend], - ]); + this.types = customTypes + ? new Map([...customTypes]) + : new Map([ + [cosmosCoin, Coin], + [cosmosMsgSend, MsgSend], + ]); } public register(typeUrl: string, type: GeneratedType): void {