Wallet connect and WAGMI sendtransaction not work only in Trust Wallet iOS #3426
-
Using Wagmi and walletconnect v2 sdk to implement sending tokens from a wallet to a specific wallet. everything works on Android on trustwallet and metamask wallets `if (typeof process === 'undefined') { import { import { Web3Modal } from "https://unpkg.com/@web3modal/[email protected]"; // 0. Import wagmi dependencies // 1. Define chains // 2. Configure wagmi client // 3. Create ethereum and modal clients document.getElementById("sendTx").onclick = async function () { const amount = amountz*1000000; const transferData = data + to.slice(2).padStart(64, "0") + amount.toString(16).padStart(64, "0"); const config = await sendTransaction({ const { hash } = await sendTransaction(config); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please try the latest app version. |
Beta Was this translation helpful? Give feedback.
Please try the latest app version.