Skip to content

Commit

Permalink
Merge pull request #20 from widolabs/fix/starknet-approval
Browse files Browse the repository at this point in the history
Add missing approval value
  • Loading branch information
sraver committed Sep 11, 2023
2 parents 6280424 + 74ce751 commit 31b6c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/swap/useSendSwapTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export default function useSendSwapTransaction(
callback: async function onSwap(): Promise<ExecTxResponse> {
const approveTx = await approve({
chainId: trade.fromToken.chainId as ChainId,
toChainId: trade.toToken.chainId,
fromToken: trade.fromToken.wrapped.address,
toToken: trade.fromToken.wrapped.address,
toToken: trade.toToken.wrapped.address,
amount: trade.inputAmount.quotient.toString(),
})

Expand Down

1 comment on commit 31b6c14

@vercel
Copy link

@vercel vercel bot commented on 31b6c14 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wido-widget – ./

wido-widget-git-main-wido.vercel.app
wido-widget.vercel.app
wido-widget-wido.vercel.app

Please sign in to comment.