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

[wallet] Doesn't calculate fee on empty balance #1652

Merged
merged 3 commits into from
Nov 11, 2019

Conversation

martinvol
Copy link
Contributor

Description

Prevents the app from updating fees if the balance is zero, due web3 known issue.

Tested

Added test case and mocked the others.

Other changes

Related issues

Backwards compatibility

Copy link
Contributor

@jmrossy jmrossy left a comment

Choose a reason for hiding this comment

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

Nice! Just a few small suggestions

packages/mobile/src/fees/saga.ts Outdated Show resolved Hide resolved
packages/mobile/src/fees/saga.ts Show resolved Hide resolved
@martinvol martinvol changed the title Doesn't calculate fee on empty balance [wallet] Doesn't calculate fee on empty balance Nov 11, 2019
@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

Merging #1652 into master will increase coverage by <.01%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1652      +/-   ##
==========================================
+ Coverage   73.81%   73.81%   +<.01%     
==========================================
  Files         279      279              
  Lines        7600     7608       +8     
  Branches      950      950              
==========================================
+ Hits         5610     5616       +6     
- Misses       1875     1877       +2     
  Partials      115      115
Flag Coverage Δ
#mobile 73.81% <77.77%> (ø) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/stableToken/reducer.ts 100% <100%> (ø) ⬆️
packages/mobile/src/fees/saga.ts 84.44% <75%> (-2.4%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95f7e35...ca41062. Read the comment docs.

@martinvol martinvol merged commit 9d315b5 into master Nov 11, 2019
@martinvol martinvol deleted the martinvol/fee_empty_balance branch November 11, 2019 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fee calculation fails if account balance is 0
2 participants