Skip to content

Commit 9d64b0e

Browse files
committed
use correct chain for wrap
1 parent cec7b35 commit 9d64b0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/toolbox/hooks/useWrappedNativeToken.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export function useWrappedNativeToken(): WrappedNativeTokenHook {
3333
abi: WrappedNativeToken.abi,
3434
functionName: 'deposit',
3535
value: parseEther(amount),
36-
account: walletEVMAddress as `0x${string}`
36+
account: walletEVMAddress as `0x${string}`,
37+
chain: viemChain
3738
});
3839

3940
notify({
@@ -54,7 +55,8 @@ export function useWrappedNativeToken(): WrappedNativeTokenHook {
5455
abi: WrappedNativeToken.abi,
5556
functionName: 'withdraw',
5657
args: [parseEther(amount)],
57-
account: walletEVMAddress as `0x${string}`
58+
account: walletEVMAddress as `0x${string}`,
59+
chain: viemChain
5860
});
5961

6062
notify({

0 commit comments

Comments
 (0)