Skip to content

[Bug]: "f is not a function" error returned for wallet_addEthereumChain and wallet_switchEthereumChain #33213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
norswap opened this issue May 27, 2025 · 0 comments
Labels
external-contributor needs-triage Issue needs to be triaged regression-prod-12.17.3 Regression bug that was found in production in release 12.17.3 type-bug Something isn't working

Comments

@norswap
Copy link

norswap commented May 27, 2025

Describe the bug

This is reproducible accross all apps, and accross multiple browsers (Chrome & Firefox tested) on the latest version of the addon, try https://chainlist.org/ for instance.

The actual chain add works, but because an error is returned the apps will think that it didn't.

Expected behavior

The call does not return an error.

Screenshots/Recordings

Screenshot from chainlist:
Image

Steps to reproduce

Error messages or log output

MetaMask - RPC Error: f is not a function 
Object { code: -32603, message: "f is not a function", data: {…} }
​
code: -32603
​
data: Object { cause: {…} }
​​
cause: Object { fileName: "moz-extension://897fa687-bf49-440d-af10-8d64d49b5cde/background-0.js", lineNumber: 1, columnNumber: 387156, … }
​​
<prototype>: Object { … }
​
message: "f is not a function"<prototype>: Object { … }

Detection stage

In production (default)

Version

12.17.3

Build type

None

Browser

Firefox, Chrome

Operating system

MacOS, Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

@norswap norswap added the type-bug Something isn't working label May 27, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity May 27, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in Bugs by team May 27, 2025
@metamaskbot metamaskbot added external-contributor regression-prod-12.17.3 Regression bug that was found in production in release 12.17.3 needs-triage Issue needs to be triaged labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor needs-triage Issue needs to be triaged regression-prod-12.17.3 Regression bug that was found in production in release 12.17.3 type-bug Something isn't working
Projects
Status: To be fixed
Status: To be triaged
Development

No branches or pull requests

2 participants