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: change non nil relayer check to non empty #1774

Merged
merged 7 commits into from
Jul 27, 2022

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Jul 25, 2022

Description

closes: #1773


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

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases
Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Nice ❤️

Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM

@colin-axner colin-axner enabled auto-merge (squash) July 27, 2022 10:53
@codecov-commenter
Copy link

Codecov Report

Merging #1774 (885b531) into main (547da7b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1774   +/-   ##
=======================================
  Coverage   80.04%   80.04%           
=======================================
  Files         166      166           
  Lines       12421    12421           
=======================================
  Hits         9943     9943           
  Misses       2013     2013           
  Partials      465      465           
Impacted Files Coverage Δ
modules/apps/29-fee/types/fee.go 83.01% <100.00%> (ø)
modules/apps/29-fee/types/msgs.go 90.75% <100.00%> (ø)

@colin-axner colin-axner merged commit 126ab2d into main Jul 27, 2022
@colin-axner colin-axner deleted the colin/1773-ics29-genesis-fix branch July 27, 2022 11:41
mergify bot pushed a commit that referenced this pull request Jul 27, 2022
* change non nil relayer check to non empty

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases

* add changelog entry

(cherry picked from commit 126ab2d)

# Conflicts:
#	CHANGELOG.md
damiannolan pushed a commit that referenced this pull request Jul 27, 2022
* fix: change non nil relayer check to non empty (#1774)

* change non nil relayer check to non empty

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases

* add changelog entry

(cherry picked from commit 126ab2d)

# Conflicts:
#	CHANGELOG.md

* fix changelog conflicts

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
ulbqb pushed a commit to ulbqb/ibc-go that referenced this pull request Jul 27, 2023
…cosmos#1790)

* fix: change non nil relayer check to non empty (cosmos#1774)

* change non nil relayer check to non empty

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases

* add changelog entry

(cherry picked from commit 126ab2d)

# Conflicts:
#	CHANGELOG.md

* fix changelog conflicts

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
ulbqb pushed a commit to ulbqb/ibc-go that referenced this pull request Jul 31, 2023
…cosmos#1790)

* fix: change non nil relayer check to non empty (cosmos#1774)

* change non nil relayer check to non empty

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases

* add changelog entry

(cherry picked from commit 126ab2d)

# Conflicts:
#	CHANGELOG.md

* fix changelog conflicts

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
ulbqb pushed a commit to ulbqb/ibc-go that referenced this pull request Jul 31, 2023
…cosmos#1790)

* fix: change non nil relayer check to non empty (cosmos#1774)

* change non nil relayer check to non empty

Change relayers != nil to len(relayers) != 0
Rename ErrRelayersNotNil to ErrRelayersNotEmpty
Add test cases

* add changelog entry

(cherry picked from commit 126ab2d)

# Conflicts:
#	CHANGELOG.md

* fix changelog conflicts

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
@ulbqb ulbqb mentioned this pull request Jul 31, 2023
9 tasks
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.

PacketFee asserts relayers must be nil causing invalid PacketFee types after json marshaling/unmarshaling
5 participants