Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Mar 19, 2024
1 parent f823244 commit dad51f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export const DEFAULT_HRP = "erd";
export const ESDT_CONTRACT_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u";
export const DEFAULT_MESSAGE_VERSION = 1;
export const MESSAGE_PREFIX = "\x17Elrond Signed Message:\n";
export const DEFALT_HEX_HASH_LENGTH = 64;
export const DEFAULT_HEX_HASH_LENGTH = 64;
4 changes: 2 additions & 2 deletions src/transactionWatcher.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AsyncTimer } from "./asyncTimer";
import { DEFALT_HEX_HASH_LENGTH } from "./constants";
import { DEFAULT_HEX_HASH_LENGTH } from "./constants";
import {
Err,
ErrExpectedTransactionEventsNotFound,
Expand Down Expand Up @@ -153,7 +153,7 @@ export class TransactionWatcher {
const hash =
typeof transactionOrTxHash === "string" ? transactionOrTxHash : transactionOrTxHash.getHash().hex();

if (hash.length !== DEFALT_HEX_HASH_LENGTH) {
if (hash.length !== DEFAULT_HEX_HASH_LENGTH) {
throw new Err("Invalid transaction hash length. The length of a hex encoded hash should be 64.");
}

Expand Down

0 comments on commit dad51f8

Please sign in to comment.