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

refactor/test: 1093 continued #1104

Merged

Conversation

shaspitz
Copy link
Contributor

Description

Continues off #1093

Logic shouldn't change, I just refactored out some unmarshaling code into its own func so it can be unit tested. Also the throttle integration tests use this new func instead of redefining unmarshaling logic

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Added ! to the type prefix if state-machine breaking change (i.e., requires coordinated upgrade)
  • Confirmed this PR does not introduce changes requiring state migrations, OR migration code has been added to consumer and/or provider modules
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Followed the guidelines for building SDK modules
  • Included the necessary unit and integration tests
  • Added a changelog entry to CHANGELOG.md
  • Included comments for documenting Go code
  • Updated the relevant documentation or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed this PR does not introduce changes requiring state migrations, OR confirmed migration code has been added to consumer and/or provider modules
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage

@shaspitz shaspitz changed the base branch from main to masa/1092-slash-packet-incompatibility June 29, 2023 18:15
@shaspitz shaspitz marked this pull request as ready for review June 29, 2023 18:15
@shaspitz shaspitz requested a review from a team as a code owner June 29, 2023 18:15
@MSalopek MSalopek merged commit 10faf0d into masa/1092-slash-packet-incompatibility Jun 30, 2023
@MSalopek MSalopek deleted the shawn/1092-refactors-and-tests branch June 30, 2023 07:11
MSalopek added a commit that referenced this pull request Jun 30, 2023
…the wire (#1093)

* fix: use v1 slash types on consumer side

* fix: update provider ibc_module to also handle v1 slash packets

* chore: update linter

* fix problematic packet handling on provider

* rm unused function

* refactor/test: 1093 continued (#1104)

* UnmarshalConsumerPacket func, use it in tests

* added test

* format

---------

Co-authored-by: Marius Poke <marius.poke@posteo.de>
Co-authored-by: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com>
mergify bot pushed a commit that referenced this pull request Jun 30, 2023
…the wire (#1093)

* fix: use v1 slash types on consumer side

* fix: update provider ibc_module to also handle v1 slash packets

* chore: update linter

* fix problematic packet handling on provider

* rm unused function

* refactor/test: 1093 continued (#1104)

* UnmarshalConsumerPacket func, use it in tests

* added test

* format

---------

Co-authored-by: Marius Poke <marius.poke@posteo.de>
Co-authored-by: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com>
(cherry picked from commit 7a33cb0)
MSalopek added a commit that referenced this pull request Jun 30, 2023
…the wire (backport #1093) (#1106)

fix: make SlashPacketData backward compatible when sending data over the wire (#1093)

* fix: use v1 slash types on consumer side

* fix: update provider ibc_module to also handle v1 slash packets

* chore: update linter

* fix problematic packet handling on provider

* rm unused function

* refactor/test: 1093 continued (#1104)

* UnmarshalConsumerPacket func, use it in tests

* added test

* format

---------

Co-authored-by: Marius Poke <marius.poke@posteo.de>
Co-authored-by: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com>
(cherry picked from commit 7a33cb0)

Co-authored-by: MSalopek <matija.salopek994@gmail.com>
insumity pushed a commit that referenced this pull request Jul 24, 2023
…the wire (#1093)

* fix: use v1 slash types on consumer side

* fix: update provider ibc_module to also handle v1 slash packets

* chore: update linter

* fix problematic packet handling on provider

* rm unused function

* refactor/test: 1093 continued (#1104)

* UnmarshalConsumerPacket func, use it in tests

* added test

* format

---------

Co-authored-by: Marius Poke <marius.poke@posteo.de>
Co-authored-by: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com>
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.

3 participants