metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

Slight inconvenience with the WalletConnect sendTransaction process.

Open judeProground opened this issue 1 year ago • 0 comments

What is this about?

Hello. I'm using MetaMask through the WalletConnect connector and wagmi on mobile. There is a slight inconvenience with the sendTransaction process.

When requesting a signature from MetaMask using the wagmi sendTransaction action, if the requested chain differs from the current chain in MetaMask, a network switch flow is triggered.

During this process, when the user confirms the network switch in the MetaMask app, it redirects back to the dapp. However, at the same time, the signature prompt is displayed in the MetaMask app, requiring the dapp user to manually switch back from dapp to the MetaMask app. This causes unnecessary redirection. Therefore, for the sendTransaction request through WalletConnect, I suggest that there should be no redirection after switching the network.

Thanks.

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

  • [ ] Engineering (needed in most cases)
  • [ ] Design
  • [ ] Product
  • [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • [ ] Security
  • [ ] Legal
  • [ ] Marketing
  • [ ] Management (please specify)
  • [ ] Other (please specify)

References

No response

judeProground avatar May 21 '24 04:05 judeProground