-
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
Hide gas estimate on non-main network #9189
Hide gas estimate on non-main network #9189
Conversation
Hey Patryk 👋 To get the e2e tests passing, I think we're going need to ensure that the |
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.
LGTM!
Mind rebasing this on the latest |
68bcaaa
to
af8b4be
Compare
ui/app/pages/send/send-content/send-gas-row/send-gas-row.component.js
Outdated
Show resolved
Hide resolved
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.
@PatrykLucka upon review, I'm afraid I've failed to give you good advice on this PR. I'm sorry for the back-and-forth.
We should not set the feature flag in order to implement this behavior. Rather, we should do this:
- If the network is Mainnet, the advanced gas controls showed be shown instead of the gas estimation only if the
advancedInlineGas
feature flag is set totrue
. - If the network is not Mainnet, we should show the advanced gas controls, regardless of the state of the
advancedInlineGas
feature flag.- Unless we're in a test, in which case we should show the gas estimate.
- We should only override the feature flag in tests if we have to. I think it's possible that we can leave it alone, and just make all networks behave like Mainnet in tests.
- Unless we're in a test, in which case we should show the gas estimate.
Makes sense, thanks! |
…nent.js Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
4222c28
to
1f2c57e
Compare
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.
LGTM!
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.
Almost there! In my local testing, there is only one place remaining where ETH Gas Station data needs to be hidden.
...ponents/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js
Outdated
Show resolved
Hide resolved
…cka/metamask-extension into hide-advance-gas-on-non-mainnet
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.
LGTM, thanks!
* hide advance gas on non mainnet * hide edit gas button on non mainnet
The changelog has been updated to include #9189
* Hide gas estimate on non-main network (#9189) * Update v8.0.9 changelog
* origin/develop: (137 commits) Use @metamask/eslint-config@3.1.0 (#9275) Standardize scss import practices (#9183) Update ESLint shared config to v3 (#9274) Add lock icon to default networks (#9269) Adds toPrecisionWithoutTrailingZeros utility (#9270) Hide gas estimate on non-main network (#9189) Move the mascot component to its own directory (#9272) Use @metamask/controllers@2.0.5 (#9266) Fix padding, alignment of actionable-message; add left aligned story Code cleanup and simplification for actionable-message component Adds actionable message component and stories Fix lint issues (#9265) Fix prefer-destructuring issues (#9263) colocate confirm-decrypt-message page styles (#9252) Tidy up Migrator tests (#9264) Adds pulse loader component (#9259) Fix import/order issues (#9239) Fix radix issues (#9247) New info tooltip component (#9180) Improve scss naming ...
This PR removes advanced gas settings option and three-button gas input (slow, average, fast) and shows the gas fields instead on all non-main networks.
Fixes: #9106