From 3d5006a7154ee9be6bb165f8cafc1bcd59c20e26 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 7 Oct 2024 17:24:25 +0200 Subject: [PATCH] fix: removes retrier and updates notification --- src/pages/verify/index.tsx | 2 +- src/utils/opentimestamps.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/verify/index.tsx b/src/pages/verify/index.tsx index abbaaae..921a181 100644 --- a/src/pages/verify/index.tsx +++ b/src/pages/verify/index.tsx @@ -264,7 +264,7 @@ export const VerifyPage = () => { }) if (upgradedTimestamps.length === 0) { - toast.success('No further timestamp upgrades found.') + toast.success('No timestamp upgrades found.') return } diff --git a/src/utils/opentimestamps.ts b/src/utils/opentimestamps.ts index a466f6a..bda5544 100644 --- a/src/utils/opentimestamps.ts +++ b/src/utils/opentimestamps.ts @@ -31,7 +31,7 @@ export const generateTimestamp = async ( export const upgradeAndVerifyTimestamp = async ( timestamp: OpenTimestamp ): Promise => { - const upgradedResult = await retry(() => upgrade(timestamp)) + const upgradedResult = await upgrade(timestamp) return await verify(upgradedResult) } @@ -44,6 +44,7 @@ export const upgradeAndVerifyTimestamp = async ( const upgrade = async ( t: OpenTimestamp ): Promise => { + console.log('timestamp: ', t) const detachedTimestamp = window.OpenTimestamps.DetachedTimestampFile.deserialize( hexStringToUint8Array(t.value)