-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: custom gas in all networks #1631
Conversation
Here's the packed extension for this build: |
const [gasPriceWarning, setGasPriceWarning] = useState< | ||
'stuck' | 'fail' | undefined | ||
>(undefined); |
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.
Maybe we can do something like this ?
const [gasPriceWarning, setGasPriceWarning] = useState<'stuck' | 'fail'>();
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.
sure
src/entries/popup/hooks/useGas.ts
Outdated
useEffect(() => { | ||
if ( | ||
!gasData || | ||
!enabled || | ||
prevDebouncedGasPrice === debouncedGasPrice || | ||
feeType !== 'legacy' || | ||
!nativeAsset | ||
) { | ||
return; | ||
} |
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.
Can we use useQuery
here ?
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.
hm yeah let me try refactoring this
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! Just a few questions.
ae0e2f1
to
b04489f
Compare
@magiziz I just applied your comments! 🙏 |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
@BrodyHughes Which network was that? Wonder if it is a bad result from Backend |
Lgtm. Have a few design tweaks for existing Custom Gas UI problems, so will create a seperate polish ticket for that and carry over Brody's issue |
Here's the packed extension for this build: |
Fixes BX-1546, BX-1507
Figma link (if any):
What changed (plus any additional context for devs)
enabling custom gas in all networks for all txs types
Screen recordings / screenshots
https://www.loom.com/share/19d39fed3c1040c29ae00a41eddc8a81
What to test