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

Fix the one remaining proto tx bug and flip the switch #6902

Merged
merged 7 commits into from
Jul 30, 2020

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Jul 30, 2020

ref: #6213

The one remaining bug was an unregistered interface type. The TxDecoder errors are now wrapped for easier debugging.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #6902 into master will increase coverage by 0.16%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #6902      +/-   ##
==========================================
+ Coverage   61.26%   61.42%   +0.16%     
==========================================
  Files         421      517      +96     
  Lines       25613    32060    +6447     
==========================================
+ Hits        15691    19694    +4003     
- Misses       8579    10799    +2220     
- Partials     1343     1567     +224     

@@ -188,9 +188,9 @@ jobs:
with:
file: ./coverage.txt
if: "env.GIT_DIFF != ''"
test-unit-proto-expected-to-fail:
test-unit-amino-might-fail:
Copy link
Contributor

Choose a reason for hiding this comment

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

lol

Copy link
Collaborator

Choose a reason for hiding this comment

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

why the might-fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because when we remove HybridCodec in #6837, it will start failing until we finish #6190.

@aaronc aaronc marked this pull request as ready for review July 30, 2020 16:54
@ethanfrey
Copy link
Contributor

Does this enable SIGN_MODE_DIRECT or "just" the protobuf encoding of the binary transaction (not signbytes)?

@aaronc
Copy link
Member Author

aaronc commented Jul 30, 2020

Does this enable SIGN_MODE_DIRECT or "just" the protobuf encoding of the binary transaction (not signbytes)?

SIGN_MODE_DIRECT has been available for a while (since #6385). This just flips the switch on the default test configuration. Before you needed a special flag to enable proto tx's in simapp.

@aaronc aaronc added A:automerge Automatically merge PR once all prerequisites pass. C:Encoding labels Jul 30, 2020
@mergify mergify bot merged commit 7e2eea8 into master Jul 30, 2020
@mergify mergify bot deleted the aaronc/6213-flip-proto-tx-switch branch July 30, 2020 18:58
Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

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

ACK

larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* Fix the one remaining proto tx bug and flip the switch

* Update github CI

* Wrap TxDecoder errors

* Add test

* Cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:Encoding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants