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

[Bug]: Activity list is showing a swap as a "send" for a brief moment before adjusting

Open DostoevskysPiano opened this issue 1 year ago • 5 comments

Describe the bug

When executing a swap, the activity list populates with "send" for a brief moment

Version: Last Commit: 9a7aa3c metamask bot build: https://github.com/MetaMask/metamask-extension/pull/32383#issuecomment-2866455715

Expected behavior

I expect it to populate with Swap.

Screenshots/Recordings

https://github.com/user-attachments/assets/9c9061fd-5131-458e-99c2-90bac6f3f590

Steps to reproduce

  1. Open MM
  2. Execute swap
  3. Notice activity list

Error messages or log output


Detection stage

In production (default)

Version

12.18

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

N/A

Severity

Visual bug

DostoevskysPiano avatar May 09 '25 16:05 DostoevskysPiano

Adding the Solana team here because the Swap activity item

micaelae avatar May 15 '25 18:05 micaelae

Adding the Solana team here because the Swap activity item

@micaelae I believe this is due to the processing we do on the bridge hooks before we show a transaction.

Lets confirm together in code 🙏

aganglada avatar May 19 '25 07:05 aganglada

Adding the Solana team here because the Swap activity item

@micaelae I think this is because of the useSolanaBridgeTransactionMapping hook which flags the transaction type as 'send' before it gets replaced by the actual event in the activity.

Image

SteP-n-s avatar May 20 '25 11:05 SteP-n-s

I think you're right. Sorry for the false alarm @aganglada ! Will add this to our backlog

micaelae avatar May 20 '25 14:05 micaelae

Fix implemented here

SteP-n-s avatar Jul 26 '25 06:07 SteP-n-s