RootSoft / walletconnect-dart-sdk

Open protocol for connecting dApps to mobile wallets with QR code scanning or deep linking.
MIT License
102 stars 61 forks source link

Fail to send transaction #54

Open Ekoios-Henry opened 2 years ago

Ekoios-Henry commented 2 years ago

My steps :

Ekoios-Henry commented 2 years ago

Evidential : https://drive.google.com/file/d/19jp61Dmv0UGvywBIp9iuEVYGFvf8mHq1/view?usp=sharing

Ekoios-Henry commented 2 years ago

image

mrtnetwork commented 2 years ago

its related to deep-link, when you open the metamask app with deep-link and try to switch between app The deep link sends the information again and again and you are having problems with it, and this error you are seeing is not related to the transaction you sent.

Ekoios-Henry commented 2 years ago

This is issue from meta mask right?

mrtnetwork commented 2 years ago

This is issue from meta mask right?

I think the problem is with Android, for example, when I get a notification from Instagram and I click on the notification to open the Instagram page, if I switch between apps and open Instagram, Instagram will show the deep page again. this example like a Metamask's deep link, Application should be designed in such a way that if a similar deep link is sent to the application, they will be ignored

Yaman-kumar commented 2 years ago

@Ekoios-Henry Can you share you code for switching to different testnet ?

wcw84 commented 2 years ago

My steps :

  • Connect to metamask -> return session
  • Create EthereumWalletConnectProvider from session above
  • Send Transaction from instance of EthereumWalletConnectProvider -> txHash My issule : txHash success in testnet.bscscan.com but in metamask have error after sent transaction Can you have me resolve it?

I follow your steps and watch your video, and found an issue: after call EthereumWalletConnectProvider to send transaction in my app, the metamask app won't popup, instead I need to click metamask app manually to confirm the transaction.

Do you have the same issue and how to resolve it? Thanks in advanced

wcw84 commented 2 years ago

instead

its related to deep-link, when you open the metamask app with deep-link and try to switch between app The deep link sends the information again and again and you are having problems with it, and this error you are seeing is not related to the transaction you sent.

My steps :

  • Connect to metamask -> return session
  • Create EthereumWalletConnectProvider from session above
  • Send Transaction from instance of EthereumWalletConnectProvider -> txHash My issule : txHash success in testnet.bscscan.com but in metamask have error after sent transaction Can you have me resolve it?

I follow your steps and watch your video, and found an issue: after call EthereumWalletConnectProvider to send transaction in my app, the metamask app won't popup, instead I need to click metamask app manually to confirm the transaction.

Do you have the same issue and how to resolve it? Thanks in advanced

I found the solution, just call mm by "launchUrl(uri)" before send transaction