From dad51f8783258d13e767eae6f3d3b09ea21df32b Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Tue, 19 Mar 2024 14:01:53 +0200 Subject: [PATCH] fix typo --- src/constants.ts | 2 +- src/transactionWatcher.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 2ad2fb8d..21dfb69d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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; diff --git a/src/transactionWatcher.ts b/src/transactionWatcher.ts index 3172acb5..3a43b923 100644 --- a/src/transactionWatcher.ts +++ b/src/transactionWatcher.ts @@ -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, @@ -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."); }