Skip to content

Commit 88618c8

Browse files
committed
refactor: account for fee action
1 parent fe64ae4 commit 88618c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type Action = "approval" | "transfer" | "buy" | "sell";
1+
export type Action = "approval" | "transfer" | "buy" | "sell" | "fee";

packages/thirdweb/src/react/core/hooks/useStepExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export function useStepExecutor(
202202
});
203203
const hash = result.transactionHash;
204204

205-
if (tx.action === "approval") {
205+
if (tx.action === "approval" || tx.action === "fee") {
206206
// don't poll status for approval transactions, just wait for confirmation
207207
await waitForReceipt(result);
208208
return;

0 commit comments

Comments
 (0)