MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.87k stars 4.85k forks source link

[Bug]: Attempt to send ERC1155 results in an error #24457

Open sleepytanya opened 4 months ago

sleepytanya commented 4 months ago

Describe the bug

Attempting to send ERC1155 tokens through the send flow results in an error, although ERC1155 tokens can be successfully sent from the NFT tab. Additionally, in Firefox, the ERC1155 icon is not displayed as expected.

Expected behavior

-

Screenshots/Recordings

https://github.com/MetaMask/metamask-extension/assets/104780023/6fe80a4e-1222-44cd-a506-e09496a6dc6c

Screenshot 2024-05-09 at 01 24 05

Steps to reproduce

  1. Start Send transaction
  2. Select ERC1155 token
  3. See MetaMask encounters an error
  4. Reload the extension
  5. Go to NFT tab
  6. Select ERC1155 token
  7. Scroll down and click 'Send'
  8. Notice that NFT can't be send when the amount is set to 0

Error messages or log output

Message: Minified React error #300; visit https://reactjs.org/docs/error-decoder.html?invariant=300 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Code: Error

Stack:
Error: Minified React error #300; visit https://reactjs.org/docs/error-decoder.html?invariant=300 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
  at ba (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:141103)
  at Ja (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:149010)
  at Is (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:186806)
  at Au (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:171541)
  at Ru (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:171466)
  at Tu (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:168814)
  at chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:127212
  at n.unstable_runWithPriority (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:3:13694)
  at Qi (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:126921)
  at eo (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:127157)
  at Ji (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:127092)
  at xu (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:169108)
  at Object.notify (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:263224)
  at t.notifyNestedSubs (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:262791)
  at t.handleChangeWrapper (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:262859)
  at g (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:313181)
  at chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:311199
  at e.<computed> (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/scripts/sentry-install.js:1:693)
  at dispatch (chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-5.js:1:314158)
  at chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/common-7.js:1:454980
  at async chrome-extension://hmmmodcphlbnfefpckakofjpcgpehoph/ui-3.js:1:55600

Version

latest build

Build type

None

Browser

Chrome, Firefox

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.