Skip to content
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

iOS Crash after editing gas price that dapp suggested #1473

Closed
danfinlay opened this issue Apr 4, 2020 · 5 comments · Fixed by #1512
Closed

iOS Crash after editing gas price that dapp suggested #1473

danfinlay opened this issue Apr 4, 2020 · 5 comments · Fixed by #1512
Assignees
Labels
type-bug Something isn't working v1

Comments

@danfinlay
Copy link
Contributor

DeFiDad reported

Using hegic.co

It seems to suggest a gas price to metamask.
When the user then opens advanced gas controls and tries to edit the gas price, MetaMask crashes.

@danfinlay danfinlay added the type-bug Something isn't working label Apr 4, 2020
@EtDu
Copy link
Contributor

EtDu commented Apr 30, 2020

@danfinlay Now it makes sense! I stumbled upon this bug while implementing the new design for advanced gas controls. If the gas price is invalid and you start to edit the gas limit, the app crashes. Able to consistently reproduce.
gas_bug

@EtDu EtDu mentioned this issue May 14, 2020
7 tasks
@dpazdan
Copy link

dpazdan commented May 20, 2020

another user reported the same to support: 36508

@EtDu
Copy link
Contributor

EtDu commented May 21, 2020

#1512 to the rescueeeee

EtDu added a commit that referenced this issue May 22, 2020
EtDu added a commit that referenced this issue May 28, 2020
EtDu added a commit that referenced this issue Jun 2, 2020
@EtDu EtDu closed this as completed in #1512 Jun 9, 2020
EtDu added a commit that referenced this issue Jun 9, 2020
* Locales: change Transaction fee to Network fee per design

* Confirm: Use TransactionReviewFeeCard, add primaryCurrency prop, add ETH transaction fee, move renderIfGasEstimationReady to TransactionReviewFeeCard, remove adjust transaction fee button, pass props to TransactionReviewFeeCard

* Create new TransactionReviewFeeCard component

* TransactionReviewFeeCard: fix proptypes, create snapshot test, update other snapshots

* Confirm: use slide up modal for custom gas

* Confirm: Remove CustomGas style wrappers into CustomGas component, make CustomGas the only child of Modal

* Locales: edit network fee, basic, save, cost explanation reword

* CustomGas: Implement redesign. Still need to modify styling of individual gas selectors

* CustomGas: fix gas selector styling

* snapshot update

* Approve: Use Modal in place of Action Modal, use updated CustomGas

* Confirm: add gasError prop to CustomGas

* CustomGas: disable save button if gas error

* CustomGas: Implement advanced options design

* update snapshot

* CustomGas: fix padding on non iphoneX devices

* Confirm: remove unused TransactionSummary

* CustomGas: remove double logic and empty styles

* Confirm: fix, change props.transactionState to state.transaction (merge conflict recovery)

* snapshot update

* SendFlow/CustomGas: fix button not disabling and error not showing when updating gas limit

* SendFlow/CustomGas: Fix #1473 crash when modifying gas limit if gas price is empty

* Confirm: add styles for ActionModal, use ActionModal

* SendFlow/CustomGas: modify styles, remove footer container

* ActionModal: add props

* ActionContent: add props

* Confirm + CutomGas: add ready state, pass down prop to change it, change it when CustomGas is ready so the button can be disabled

* Approve: add in ActionModal styles, use ActionModal

* snapshot update

* SendFlow/CustomGas: QA fix save not disabled on certain case

Co-authored-by: Ibrahim Taveras <ibrahimtaveras00@gmail.com>
@ibrahimtaveras00
Copy link
Contributor

ibrahimtaveras00 commented Jun 12, 2020

This issue still seems to be occurring even on current develop/ 0.2.17 version

Seen here = https://recordit.co/XCdB1XkMo2

steps to reproduce:

image

cc @omnat

@EtDu
Copy link
Contributor

EtDu commented Jul 9, 2020

This is fixed

@EtDu EtDu closed this as completed Jul 9, 2020
rickycodes pushed a commit that referenced this issue Jan 31, 2022
* Locales: change Transaction fee to Network fee per design

* Confirm: Use TransactionReviewFeeCard, add primaryCurrency prop, add ETH transaction fee, move renderIfGasEstimationReady to TransactionReviewFeeCard, remove adjust transaction fee button, pass props to TransactionReviewFeeCard

* Create new TransactionReviewFeeCard component

* TransactionReviewFeeCard: fix proptypes, create snapshot test, update other snapshots

* Confirm: use slide up modal for custom gas

* Confirm: Remove CustomGas style wrappers into CustomGas component, make CustomGas the only child of Modal

* Locales: edit network fee, basic, save, cost explanation reword

* CustomGas: Implement redesign. Still need to modify styling of individual gas selectors

* CustomGas: fix gas selector styling

* snapshot update

* Approve: Use Modal in place of Action Modal, use updated CustomGas

* Confirm: add gasError prop to CustomGas

* CustomGas: disable save button if gas error

* CustomGas: Implement advanced options design

* update snapshot

* CustomGas: fix padding on non iphoneX devices

* Confirm: remove unused TransactionSummary

* CustomGas: remove double logic and empty styles

* Confirm: fix, change props.transactionState to state.transaction (merge conflict recovery)

* snapshot update

* SendFlow/CustomGas: fix button not disabling and error not showing when updating gas limit

* SendFlow/CustomGas: Fix #1473 crash when modifying gas limit if gas price is empty

* Confirm: add styles for ActionModal, use ActionModal

* SendFlow/CustomGas: modify styles, remove footer container

* ActionModal: add props

* ActionContent: add props

* Confirm + CutomGas: add ready state, pass down prop to change it, change it when CustomGas is ready so the button can be disabled

* Approve: add in ActionModal styles, use ActionModal

* snapshot update

* SendFlow/CustomGas: QA fix save not disabled on certain case

Co-authored-by: Ibrahim Taveras <ibrahimtaveras00@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Something isn't working v1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants