[Bug]: Wrong function name in "077-supplement-for-088.ts" #29907
Labels
external-contributor
regression-prod-12.10.1
Regression bug that was found in production in release 12.10.1
type-bug
Describe the bug
I'm reading the metamask source code recently and found a bug:
The function name is currently named "transformState077For086" in "077-supplement-for-088.ts"
export default function transformState077For086
It called in file "077.js"
import transformState077For088 from './077-supplements/077-supplement-for-088'; newState = transformState077For088(newState);
Although this does not affect normal calls, because the imported function name and the default exported function name can be inconsistent.
But this is still a issue that should be fixed because:
1.Incorrect function names affect code readability
2.Wrong function names will be displayed during debugging
3.It violates the principle of code consistency
Expected behavior
Rename named "transformState077For086" to "transformState077For088" in "077-supplement-for-088.ts"
Screenshots/Recordings
No response
Steps to reproduce
No need.
Error messages or log output
Detection stage
In production (default)
Version
12.10.1
Build type
None
Browser
Chrome
Operating system
Windows
Hardware wallet
No response
Additional context
No response
Severity
No response
The text was updated successfully, but these errors were encountered: