Skip to content

Commit 0b5088f

Browse files
committed
refactor(profile): remove tx confirmations
because it takes time to be revalidated
1 parent aabe2a1 commit 0b5088f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/profile/unclaimed-hypercert-butchClaim-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default function UnclaimedHypercertBatchClaimButton({
8585
}
8686
await setDialogStep("confirming", "active");
8787
const receipt = await waitForTransactionReceipt(walletClient, {
88-
confirmations: 3,
8988
hash: tx,
9089
});
9190
if (receipt.status == "success") {
@@ -105,6 +104,7 @@ export default function UnclaimedHypercertBatchClaimButton({
105104
console.error(error);
106105
} finally {
107106
setIsLoading(false);
107+
setOpen(false);
108108
}
109109
};
110110
return (

components/profile/unclaimed-hypercert-claim-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export default function UnclaimedHypercertClaimButton({
8282

8383
await setDialogStep("confirming", "active");
8484
const receipt = await waitForTransactionReceipt(walletClient, {
85-
confirmations: 3,
8685
hash: tx,
8786
});
8887

@@ -111,6 +110,7 @@ export default function UnclaimedHypercertClaimButton({
111110
console.error(error);
112111
} finally {
113112
setIsLoading(false);
113+
setOpen(false);
114114
}
115115
};
116116

0 commit comments

Comments
 (0)