Skip to content

Commit

Permalink
fix: approval args
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzkirstein committed Sep 28, 2023
1 parent 1c7fdd0 commit 4ff5688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@hooks/useTokenApproval.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function useTokenApproval(): TokenApprovalProviderValue {
abi: erc20ABI,
functionName: 'approve',
args: [
autoWallet?.wallet?.address as `0x${string}`,
autoWallet?.address as `0x${string}`,
ethers.utils.parseUnits(value, 18)
]
})
Expand Down Expand Up @@ -76,7 +76,7 @@ export default function useTokenApproval(): TokenApprovalProviderValue {
abi: erc20ABI,
functionName: 'approve',
args: [
autoWallet?.wallet?.address as `0x${string}`,
autoWallet?.address as `0x${string}`,
ethers.utils.parseUnits(value, 6)
]
})
Expand Down

0 comments on commit 4ff5688

Please sign in to comment.