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

[bug]: Wagmi sendTransaction doesn't work with Trust Wallet on Android #282

Open
alpeeff opened this issue Dec 12, 2024 · 8 comments
Open
Labels
bug Something isn't working

Comments

@alpeeff
Copy link

alpeeff commented Dec 12, 2024

Description

sendTransaction doesn't work with Trust Wallet on Android but works with MetaMask
When I call sendTransaction redirect happens but modal to confirm transaction doesn't show up

AppKit SDK version

"@reown/appkit-wagmi-react-native": "^1.0.2",

Output of npx react-native info

ystem:
OS: macOS 14.6
CPU: (8) arm64 Apple M3
Memory: 844.20 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: Not Found
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode: 16.0/16A242d - /usr/bin/xcodebuild
Languages:
Java: 17.0.12 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.14 => 0.71.14
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Expo Version (if applies)

Expo: 48.0.21

Steps to reproduce

Connect to TrustWallet on Android and try to use sendTransaction function

Snack, code example, screenshot, or link to a repository

sendTransaction({
  to: ethAddress,
  value: ethers.parseUnits('0.01', 18),
  data: '0x',
})
@alpeeff alpeeff added the bug Something isn't working label Dec 12, 2024
@alpeeff alpeeff changed the title [bug]: Wagmi sendTransaction doesn't work with Trust Wallet [bug]: Wagmi sendTransaction doesn't work with Trust Wallet on Android Dec 12, 2024
@ignaciosantise
Copy link
Collaborator

Hey @alpeeff 👋 are you using the latest version of wagmi/viem? Also, can you try using parseEther from viem?

import {useSendTransaction} from 'wagmi';
import {parseEther} from 'viem/utils';

sendTransaction({
  to: ethAddress,
  value: parseEther('0.01'),
  data: '0x',
})

@alpeeff
Copy link
Author

alpeeff commented Dec 12, 2024

Hey @alpeeff 👋 are you using the latest version of wagmi/viem? Also, can you try using parseEther from viem?

import {useSendTransaction} from 'wagmi';
import {parseEther} from 'viem/utils';

sendTransaction({
  to: ethAddress,
  value: parseEther('0.01'),
  data: '0x',
})

After updating minor versions nothing has changed.
I'll attach videos for trust and metamask:

metamask.mp4
trust.mp4

@ignaciosantise
Copy link
Collaborator

@alpeeff can you check with another network? I think Trust doesnt support testnets

@alpeeff
Copy link
Author

alpeeff commented Dec 13, 2024

@ignaciosantise Still doesn't work in Trust Wallet Android.
I tried on bare thirdweb project and It works.

@ignaciosantise
Copy link
Collaborator

okey, can you provide a minimal reproducible example so i can test it locally?

@ignaciosantise
Copy link
Collaborator

@alpeeff im not able to reproduce it on my side. Im using the sample app, and the latest version of Trust. In mainnet, not sepholia

trust.mov

@alpeeff
Copy link
Author

alpeeff commented Jan 14, 2025

@ignaciosantise Hmn, I'll try to use sample app and write you back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants
@ignaciosantise @alpeeff and others