MetaMask / MetaMask/metamask-mobile

[Bug]: Keystone: Something went wrong modal when cancelling swap

Open
#34,593 2 comments 0 reactions 0 assignees View on GitHub
regression-RC-8.7.0 Sev2-normal ta-ai-fixable ta-needs-engineer-escalation ta-triaged team-accounts-framework type-bug
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### Describe the bug

If swap using Keystone account is cancelled from MetaMask, then Something went wrong modal is displayed.

### Expected behavior

The user should navigate back to previous screen with no error. The pending transaction should be removed.

### Screenshots/Recordings

Image

https://github.com/user-attachments/assets/f33c1478-9207-4a49-ad29-c1bdd0737244

### Steps to reproduce

1. Connect Keystone wallet
2. Swap any token
3. Click Swap
4. Click Cancel on MetaMask
5. Notice Something went wrong modal

### Error messages or log output

```shell

```

### Where was this bug found?

Internal release testing

### Version

8.7.0

### Build number

6409

### Build type

_No response_

### Device

iPhone 15, Pixel 6 Pro

### Operating system

iOS, Android

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the swap cancellation flow with a Keystone wallet on iOS or Android, following the steps in the issue and observing the cancellation handling. Trace where the Something went wrong modal is selected and where pending transactions are removed; done means cancellation returns to the previous screen without an error and removes the pending transaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.