Skip to content

Commit

Permalink
fix: tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRFelix committed Nov 26, 2024
1 parent c61b997 commit f19fa6e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/web/hooks/use-swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,13 @@ export function useSwap(
accountStore
.signAndBroadcast(
chainStore.osmosis.chainId,
routes.length === 1
? "swapExactAmountIn"
: "splitRouteSwapExactAmountIn",
quoteType === "out-given-in"
? routes.length === 1
? "swapExactAmountIn"
: "splitRouteSwapExactAmountIn"
: routes.length === 1
? "swapExactAmountOut"
: "splitRouteSwapExactAmountOut",
messages,
undefined,
signOptions?.fee,
Expand Down

0 comments on commit f19fa6e

Please sign in to comment.