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

cli: implement Fixed8Flag #752

Merged
merged 3 commits into from
Mar 16, 2020
Merged

cli: implement Fixed8Flag #752

merged 3 commits into from
Mar 16, 2020

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Mar 12, 2020

  1. Parse Fixed8 from string in cli instead of float.
  2. Implement transaction.AddVerificationHash() for convenience.

@codecov
Copy link

codecov bot commented Mar 12, 2020

Codecov Report

Merging #752 into master will increase coverage by 0.04%.
The diff coverage is 38.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #752      +/-   ##
==========================================
+ Coverage   64.80%   64.84%   +0.04%     
==========================================
  Files         141      141              
  Lines       12790    12779      -11     
==========================================
- Hits         8288     8286       -2     
+ Misses       4097     4091       -6     
+ Partials      405      402       -3     
Impacted Files Coverage Δ
pkg/core/transaction/transaction.go 56.36% <0.00%> (-2.69%) ⬇️
pkg/rpc/client/rpc.go 0.00% <0.00%> (ø)
pkg/rpc/request/txBuilder.go 52.08% <0.00%> (+1.40%) ⬆️
pkg/core/dao.go 69.83% <83.33%> (+1.14%) ⬆️

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 d129c5c...b193e78. Read the comment docs.

cli/flags/fixed8.go Outdated Show resolved Hide resolved
cli/flags/fixed8.go Outdated Show resolved Hide resolved
cli/flags/fixed8.go Outdated Show resolved Hide resolved
cli/flags/fixed8.go Outdated Show resolved Hide resolved
Parsing gas from float value is not always a right idea as
a transform from float is not 1-to-1.
This commit implements Fixed8Flag which parses Fixed8 value from string.
@roman-khimov roman-khimov merged commit d742733 into master Mar 16, 2020
@roman-khimov roman-khimov deleted the fix/fixed8 branch March 16, 2020 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants