'Why safepal from walletconnect is not working with @web3-react?
I've integrated walletconnect in my react web app. It connects to safepal successfully.. But when I tried to use the function , sendTransaction and send some money from SafePal account to another one, it doesn't work. When i click the send transaction button from react app, a loading button forms in the Safepal app, and loads endlessly.. This issue is with only Safepal. Trustwallet and Metamask are working perfectly.
const transactionParameters = {
from: account,
to: '0x0000000000000000000000000000000000000000',
value: 0,
};
let provider = await connector.getProvider()
const web3 = new Web3(provider)
web3.eth.sendTransaction(transactionParameters).then(
(res)=>{
alert("Transaction Successfull")
}
).catch(err => {
alert("transaction Failed")
console.log(err)
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
