Skip to content

Commit

Permalink
fix: better error handling for block hash expired
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Oct 21, 2024
1 parent e18ef31 commit 715e3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mrgn-utils/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export const handleError = (
}

if (
error.messgae?.toLowerCase()?.includes("block height exceeded") ||
error.message?.toLowerCase()?.includes("block height exceeded") ||
error.message === "BlockhashNotFound" || // Exact match
error.message?.toLowerCase()?.includes("blockhashnotfound") || // Contains 'BlockhashNotFound'
error.message?.includes('"BlockhashNotFound"') || // Contains '"BlockhashNotFound"'
Expand Down

0 comments on commit 715e3cb

Please sign in to comment.