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

'Use Max' fixes #1710

Merged
merged 4 commits into from
Jul 24, 2020
Merged

'Use Max' fixes #1710

merged 4 commits into from
Jul 24, 2020

Conversation

EtDu
Copy link
Contributor

@EtDu EtDu commented Jul 22, 2020

Description

  • Fixes sometimes seeing insufficient funds error when using max
  • Fixes sometimes not wiping the entire balance when using max

Checklist

Issue

Resolves #1700
Resolves #1614

https://trello.com/c/jlCqEW9v/181-insufficient-funds-during-use-max-for-transactions
https://trello.com/c/kf9Po3o6/157-send-max-balance-doesnt-wipe-out-the-account-fully

@EtDu EtDu requested a review from a team as a code owner July 22, 2020 13:47
Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, QA Passed 👍

Tried with both native and fiat set as my primary currency and tried with both ETH and a few ERC20 tokens to be safe!

@ibrahimtaveras00 ibrahimtaveras00 added the QA Passed A successful QA run through has been done label Jul 23, 2020
const { contractExchangeRates, conversionRate, currentCurrency, ticker } = this.props;
const { internalPrimaryCurrencyIsCrypto } = this.state;
!useMax && this.setState({ maxFiatInput: undefined });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be here or it can be put in https://github.com/MetaMask/metamask-mobile/pull/1710/files#diff-3fb35285a1d5260613283030e9e9a32cR756 just to not have two state updates on a method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved!

Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just one small comment

@EtDu EtDu merged commit d01d6cd into develop Jul 24, 2020
@EtDu EtDu deleted the send-max branch July 24, 2020 10:31
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* SendFlow/Amount: fix amount max not clearing entire account and causing insufficient funds error

* SendFlow: fix again

* Amount: move maxFiatInput to existing setstate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insufficient funds during 'use max' for transactions Send Max Balance issue
3 participants