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]"); } }