Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERC20 transfer interpreted as ETH transfer (WalletConnect v2.0) #4996

Closed
lassejaco opened this issue Aug 10, 2023 · 1 comment
Closed

ERC20 transfer interpreted as ETH transfer (WalletConnect v2.0) #4996

lassejaco opened this issue Aug 10, 2023 · 1 comment
Labels

Comments

@lassejaco
Copy link

Description:
Connecting to Rainbow Wallet (freshly downloaded) through WalletConnect v2.0 and initiating an ERC20 transfer is interpreted by Rainbow as an ETH transfer - e.g. (pic below) if I wanted to transfer 16,5 DAI, Rainbow will prompt the user a transaction transferring 16,5 ETH, which is a bit problematic to the say the least

image

Happens for all networks.

Other wallets do not have the problem, so we suspect the issue is with Rainbow some way or another.

package versions:

"@wagmi/core": "^1.3.2",
"@web3modal/ethereum": "^2.6.1",
"@web3modal/html": "^2.6.1",
"viem": "^1.1.6",

Implementation

const { hash } = await writeContract({
  abi: erc20ABI,
  address: daiContractAddress,
  functionName: 'transfer',
  args: [0x..., amount]
})
``



@skylarbarrera
Copy link
Contributor

Hey!

this was fixed in the last few app updates

thanks for the report!

🌈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants