From d1f3a42c119d5588eab667ec7bb6e71042cfb656 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 25 Apr 2020 03:26:44 -0400 Subject: [PATCH] Minor typing-detected fixes. --- packages/asm/src.ts/assembler.ts | 2 +- packages/hdnode/src.ts/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/asm/src.ts/assembler.ts b/packages/asm/src.ts/assembler.ts index ce91f14927..3033e900dd 100644 --- a/packages/asm/src.ts/assembler.ts +++ b/packages/asm/src.ts/assembler.ts @@ -148,7 +148,7 @@ export type AssembleVisitFunc = (node: Node, bytecode: string) => void; export type VisitFunc = (node: Node) => void; function throwError(message: string, location: Location): never { - return logger.throwError(message, "ASSEMBLER", { + return logger.throwError(message, "ASSEMBLER", { location: location }); } diff --git a/packages/hdnode/src.ts/index.ts b/packages/hdnode/src.ts/index.ts index d15e58531b..bef61c96e0 100644 --- a/packages/hdnode/src.ts/index.ts +++ b/packages/hdnode/src.ts/index.ts @@ -302,7 +302,7 @@ export class HDNode implements ExternallyOwnedAccount { return new HDNode(_constructorGuard, hexlify(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null); } - return logger.throwError("invalid extended key", "extendedKey", "[REDACTED]"); + return logger.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); } }