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

SortJSON method for GetSignBytes (ledger) #1560

Merged
merged 3 commits into from
Jul 5, 2018
Merged

Conversation

liamsi
Copy link
Contributor

@liamsi liamsi commented Jul 5, 2018

Add a simple method that takes arbitrary JSON and sorts it by keys. It basically makes use of json.Marshal. Added some test-cases to make sure it works with our TXSpec, too.

Context: tendermint/go-amino#171
Can be used for: #1550
Also related: #983

  • [ ] Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • [ ] Updated CHANGELOG.md
  • [ ] Updated Gaia/Examples
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)

@codecov
Copy link

codecov bot commented Jul 5, 2018

Codecov Report

Merging #1560 into develop will increase coverage by 0.01%.
The diff coverage is 77.77%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage     64.4%   64.42%   +0.01%     
===========================================
  Files          118      118              
  Lines         6496     6504       +8     
===========================================
+ Hits          4184     4190       +6     
- Misses        2062     2063       +1     
- Partials       250      251       +1

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

utACK

@cwgoes cwgoes merged commit d84ed7c into cosmos:develop Jul 5, 2018
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