Skip to content

Commit

Permalink
Merge pull request #1815 from IntersectMBO/chore/1699-wallet-related-…
Browse files Browse the repository at this point in the history
…sentry-issues

chore(#1699): remove unneeded wallet related sentry reports
  • Loading branch information
MSzalowski authored Aug 26, 2024
2 parents 83d7430 + 06ae45b commit 4956d54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ changes.
### Changed

- Bump @intersect.mbo/pdf-ui to v0.3.7
- Decrease level of wallet related sentry reports [Issue 1699](https://github.com/IntersectMBO/govtool/issues/1699)

## [sancho-v1.0.13](https://github.com/IntersectMBO/govtool/releases/tag/sancho-v1.0.13) 2024-08-22

Expand Down
26 changes: 0 additions & 26 deletions govtool/frontend/src/context/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ const CardanoProvider = (props: Props) => {
// return changeAddress for the usage of the pillars;
return changeAddress;
} catch (err) {
Sentry.setTag("wallet-action", "getChangeAddress");
Sentry.captureException(err);
console.error(err);
}
};
Expand All @@ -225,8 +223,6 @@ const CardanoProvider = (props: Props) => {
).to_bech32();
setWalletState((prev) => ({ ...prev, usedAddress }));
} catch (err) {
Sentry.setTag("wallet-action", "getUsedAddresses");
Sentry.captureException(err);
console.error(err);
}
};
Expand Down Expand Up @@ -264,12 +260,6 @@ const CardanoProvider = (props: Props) => {
return enabledWalletApi;
})
.catch((e) => {
Sentry.addBreadcrumb({
category: "wallet",
message: "Wallet connection failed",
level: "warning",
});
Sentry.captureException(e, { data: window.cardano[walletName] });
throw e.info;
});
await getChangeAddress(enabledApi);
Expand Down Expand Up @@ -366,8 +356,6 @@ const CardanoProvider = (props: Props) => {

return { status: t("ok"), stakeKey: stakeKeySet };
} catch (e) {
Sentry.setTag("wallet-action", "enable");
Sentry.captureException(e);
console.error(e);
setError(`${e}`);
setAddress(undefined);
Expand Down Expand Up @@ -589,8 +577,6 @@ const CardanoProvider = (props: Props) => {
disconnectWallet();
}

Sentry.setTag("wallet-action", "buildSignSubmitConwayCertTx");
Sentry.captureException(error);
console.error(error, "error");
throw error?.info ?? error;
}
Expand Down Expand Up @@ -639,8 +625,6 @@ const CardanoProvider = (props: Props) => {

return certBuilder;
} catch (e) {
Sentry.setTag("wallet-action", "buildVoteDelegationCert");
Sentry.captureException(e);
console.error(e);
throw e;
}
Expand Down Expand Up @@ -678,8 +662,6 @@ const CardanoProvider = (props: Props) => {
}
return Certificate.new_drep_registration(dRepRegCert);
} catch (e) {
Sentry.setTag("wallet-action", "buildDRepRegCert");
Sentry.captureException(e);
console.error(e);
throw e;
}
Expand Down Expand Up @@ -708,8 +690,6 @@ const CardanoProvider = (props: Props) => {
}
return Certificate.new_drep_update(dRepUpdateCert);
} catch (e) {
Sentry.setTag("wallet-action", "buildDRepUpdateCert");
Sentry.captureException(e);
console.error(e);
throw e;
}
Expand All @@ -731,8 +711,6 @@ const CardanoProvider = (props: Props) => {

return Certificate.new_drep_deregistration(dRepRetirementCert);
} catch (e) {
Sentry.setTag("wallet-action", "buildDRepRetirementCert");
Sentry.captureException(e);
console.error(e);
throw e;
}
Expand Down Expand Up @@ -785,8 +763,6 @@ const CardanoProvider = (props: Props) => {

return votingBuilder;
} catch (e) {
Sentry.setTag("wallet-action", "buildVote");
Sentry.captureException(e);
console.error(e);
throw e;
}
Expand Down Expand Up @@ -998,8 +974,6 @@ function useCardano() {
// TODO: type error
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
Sentry.setTag("wallet-action", "enable");
Sentry.captureException(e);
await context.disconnectWallet();
navigate(PATHS.home);
openModal({
Expand Down

0 comments on commit 4956d54

Please sign in to comment.