Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@across-protocol/constants": "^3.1.102",
"@across-protocol/contracts": "5.0.4",
"@across-protocol/sdk": "4.3.138",
"@across-protocol/sdk": "4.3.139",
"@arbitrum/sdk": "^4.0.2",
"@consensys/linea-sdk": "^0.3.0",
"@coral-xyz/anchor": "^0.31.1",
Expand Down
5 changes: 3 additions & 2 deletions src/finalizer/utils/helios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
assert,
fetchWithTimeout,
postWithTimeout,
isHttpError,
} from "../../utils";
import { spreadEventWithBlockNumber } from "../../utils/EventUtils";
import { FinalizerPromise, CrossChainMessage } from "../types";
Expand Down Expand Up @@ -351,9 +352,9 @@ async function enrichHeliosActions(
getError = error;
}

// Handle fetch error based on whether it was a NOTFOUND or another error
// Handle fetch error based on whether it was a NOTFOUND or another error.
if (getError) {
const isNotFoundError = getError instanceof Error && getError.message.includes("HTTP 404");
const isNotFoundError = isHttpError(getError) && getError.status === 404;
if (isNotFoundError) {
// NOTFOUND error -> Request proof
logger.debug({ ...logContext, message: "Proof not found (404), requesting...", proofId });
Expand Down
1 change: 1 addition & 0 deletions src/utils/SDKUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const {
chainHasNativeToken,
fetchWithTimeout,
postWithTimeout,
isHttpError,
} = sdk.utils;

export type FetchHeaders = sdk.utils.FetchHeaders;
Expand Down
Loading
Loading