MetaMask / MetaMask/metamask-mobile

[Bug]: When swapping TRC20 -> TRX, approval transaction shows undefined until confirmed

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

Description

### Describe the bug

User swaps TRC20 -> TRX on Tron network, verify the approval transaction does not display undefined on amount.

### Expected behavior

Approval transaction does not display undefined on amount.

### Screenshots/Recordings

Image

### Steps to reproduce

1. Initiate swap SUN (TRC20) -> TRX
2. Confirm swap
3. Monitor the approval transaction on activity screen
4. Approval transaction shows Interaction and undefined beside it

### Error messages or log output

```shell

```

### Where was this bug found?

Internal release testing

### Version

7.81.0

### Build number

5380

### Build type

None

### Device

iPhone 12

### Operating system

iOS

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing a SUN (TRC20) to TRX swap on iOS and tracing the approval transaction on the activity screen. Identify where the approval amount is rendered before confirmation, then verify that the activity entry shows a defined amount during the swap and remains correct after confirmation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.