Skip to content

Commit

Permalink
Minor typing-detected fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 25, 2020
1 parent bda6623 commit d1f3a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/asm/src.ts/assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, <any>"ASSEMBLER", {
location: location
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/hdnode/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]");
}
}

Expand Down

0 comments on commit d1f3a42

Please sign in to comment.