-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: 🐛 fix insufficient funds displays incorrect native token #29828
fix: 🐛 fix insufficient funds displays incorrect native token #29828
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [969744b]
Page Load Metrics (1681 ± 73 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [537f5ed]
Page Load Metrics (1825 ± 138 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [776040a]
Page Load Metrics (1956 ± 77 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [bb5ff52]
Page Load Metrics (1747 ± 62 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [d5efd0f]
Page Load Metrics (1724 ± 66 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good solution @matteoscurati ! We do need a slight change though:
We can't simply change the English key because the other languages don't get re-translated. What we'll need to do is:
- Create a new key in
app/_locales/en/messages.json
for the new string - Run
yarn verify-locales:fix
to remove the old, unused strings from other languages.
That way the string will get properly translated by our vendors.
@darkwing thx! I’ve created the new strings with the latest commit! |
Builds ready [c1cd7ae]
Page Load Metrics (1479 ± 32 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR addresses an issue where the "Insufficient funds" alert incorrectly displayed "ETH" as the native token, regardless of the actual network's native token #28867. This was observed when users attempted to initiate a transaction on networks with a different native token, such as Polygon, where "POL" should be displayed instead of "ETH".
Related issues
#28867
Manual testing steps
Screenshots/Recordings
Before
After
https://www.loom.com/share/8dd8001fc8d44da3b77e52a4877427f8
Pre-merge author checklist
Pre-merge reviewer checklist