Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs committed Jan 30, 2025
1 parent 63d6ecc commit 044a575
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/app/context/wallet/BTCWalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
} from "react";

import { useError } from "@/app/context/Error/ErrorProvider";
import { ErrorType } from "@/app/types/errors";
import { Fees } from "@/app/types/fee";
import {
getAddressBalance,
Expand Down Expand Up @@ -135,7 +134,6 @@ export const BTCWalletProvider = ({ children }: PropsWithChildren) => {
// wallet error
error: new Error(errorMessage),
displayOptions: {
errorType: ErrorType.WALLET,
retryAction: () => connectBTC(walletProvider),
},
});
Expand Down
2 changes: 0 additions & 2 deletions src/app/context/wallet/CosmosWalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from "react";

import { useError } from "@/app/context/Error/ErrorProvider";
import { ErrorType } from "@/app/types/errors";
import { getNetworkConfigBBN } from "@/config/network/bbn";
import { createBbnRegistry } from "@/utils/wallet/bbnRegistry";

Expand Down Expand Up @@ -78,7 +77,6 @@ export const CosmosWalletProvider = ({ children }: PropsWithChildren) => {
handleError({
error,
displayOptions: {
errorType: ErrorType.WALLET,
retryAction: () => connectCosmos(provider),
},
});
Expand Down
4 changes: 0 additions & 4 deletions src/app/context/wallet/WalletConnectionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { type PropsWithChildren } from "react";

import { TomoConnectionProvider } from "@/app/context/tomo/TomoProvider";
import { TomoWidget } from "@/app/context/tomo/TomoWidget";
import { ErrorType } from "@/app/types/errors";
import { getNetworkConfigBBN } from "@/config/network/bbn";
import { getNetworkConfigBTC } from "@/config/network/btc";

Expand Down Expand Up @@ -47,9 +46,6 @@ export const WalletConnectionProvider = ({ children }: PropsWithChildren) => {
const onError = (error: Error) => {
handleError({
error,
displayOptions: {
errorType: ErrorType.WALLET,
},
});
};

Expand Down
5 changes: 0 additions & 5 deletions src/app/hooks/services/useStakingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
DelegationV2StakingState as DelegationState,
DelegationV2,
} from "@/app/types/delegationsV2";
import { ErrorType } from "@/app/types/errors";
import { retry } from "@/utils";
import { btcToSatoshi } from "@/utils/btc";

Expand Down Expand Up @@ -92,9 +91,6 @@ export function useStakingService() {
} catch (error: any) {
handleError({
error,
displayOptions: {
errorType: ErrorType.STAKING,
},
});
reset();
}
Expand Down Expand Up @@ -147,7 +143,6 @@ export function useStakingService() {
handleError({
error,
displayOptions: {
errorType: ErrorType.STAKING,
retryAction: () => stakeDelegation(delegation),
},
});
Expand Down

0 comments on commit 044a575

Please sign in to comment.