diff --git a/CHANGELOG.md b/CHANGELOG.md index 21bd99035..147ab7ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ changes. ### Removed -- +- Remove logging to sentry for DRep registration transaction [Issue 2681](https://github.com/IntersectMBO/govtool/issues/2681) ## [v2.0.7](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.7) 2025-01-20 diff --git a/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx b/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx index e2de25f10..e96d074ce 100644 --- a/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx +++ b/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx @@ -3,7 +3,6 @@ import { useNavigate } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { useFormContext } from "react-hook-form"; import { blake2bHex } from "blakejs"; -import * as Sentry from "@sentry/react"; import { NodeObject } from "jsonld"; import { CertificatesBuilder } from "@emurgo/cardano-serialization-lib-asmjs"; @@ -127,29 +126,23 @@ export const useRegisterAsdRepForm = ( async (data: DRepDataFormValues) => { if (!hash) return; const uri = data.storingURL; - try { - const certBuilder = CertificatesBuilder.new(); + const certBuilder = CertificatesBuilder.new(); - const registerCert = voter?.isRegisteredAsSoleVoter - ? await buildDRepUpdateCert(uri, hash) - : await buildDRepRegCert(uri, hash); + const registerCert = voter?.isRegisteredAsSoleVoter + ? await buildDRepUpdateCert(uri, hash) + : await buildDRepRegCert(uri, hash); - certBuilder.add(registerCert); + certBuilder.add(registerCert); - if (!registeredStakeKeysListState.length) { - const stakeKeyRegCert = await buildStakeKeyRegCert(); - certBuilder.add(stakeKeyRegCert); - } + if (!registeredStakeKeysListState.length) { + const stakeKeyRegCert = await buildStakeKeyRegCert(); + certBuilder.add(stakeKeyRegCert); + } - const voteDelegationCert = await buildVoteDelegationCert(dRepID); - certBuilder.add(voteDelegationCert); + const voteDelegationCert = await buildVoteDelegationCert(dRepID); + certBuilder.add(voteDelegationCert); - return certBuilder; - } catch (error) { - Sentry.setTag("hook", "useRegisterAsdRepForm"); - Sentry.captureException(error); - throw error; - } + return certBuilder; }, [ buildDRepRegCert, @@ -222,9 +215,6 @@ export const useRegisterAsdRepForm = ( }, }); } else { - Sentry.setTag("hook", "useRegisterAsdRepForm"); - Sentry.captureException(error); - openWalletErrorModal({ error, onSumbit: () => backToDashboard(),