Skip to content

Commit 0a3b78d

Browse files
authored
fix: swap showing confetti after allowance approval (#780)
1 parent 7e09643 commit 0a3b78d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ui/src/contexts/SwapProvider/useEvmSwap.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export const useEvmSwap: SwapAdapter<EvmSwapQuote> = (
224224
const signAndSend = async (
225225
method: RpcMethod,
226226
txParams: [NormalizedTransactionParams],
227+
context?: Record<string, unknown>,
227228
): Promise<string> => {
228229
const isBatch = method === RpcMethod.ETH_SEND_TRANSACTION_BATCH;
229230
const transactions = isBatch ? txParams : [txParams[0]];
@@ -319,6 +320,7 @@ export const useEvmSwap: SwapAdapter<EvmSwapQuote> = (
319320
},
320321
{
321322
scope: network.caipId,
323+
context,
322324
},
323325
);
324326
};

0 commit comments

Comments
 (0)