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: use cosmossdk.io/errors #5065

Merged
merged 3 commits into from
May 3, 2023
Merged

refactor: use cosmossdk.io/errors #5065

merged 3 commits into from
May 3, 2023

Conversation

faddat
Copy link
Member

@faddat faddat commented May 3, 2023

What is the purpose of the change

Make upgrading to sdk v0.47.x easier by adopting cosmossdk.io/errors where applicable while
still using sdk v0.45.x

Brief Changelog

  • replace error wraps and wrapfs and registrations

Testing and Verifying

This should pass all existing tests without issue

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? yes
  • How is the feature or change documented? not applicable

@faddat faddat mentioned this pull request May 3, 2023
26 tasks
@faddat faddat added V:state/compatible/backport State machine compatible PR, should be backported and removed V:state/compatible/no_backport State machine compatible PR, depends on prior breaks labels May 3, 2023
@faddat
Copy link
Member Author

faddat commented May 3, 2023

regarding labels: only backport this to v15

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@nicolaslara nicolaslara left a comment

Choose a reason for hiding this comment

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

This looks good to me (pretty straightforward) but left some small comments

@faddat
Copy link
Member Author

faddat commented May 3, 2023

@nicolaslara sir, do you have any idea what might be making my editor defy me?

I didn't make the change to the backlog link..... I'll manually fix but suspect it happened because I hit ctrl+s -- will look into it from my end too (maybe markdownlint?)

@nicolaslara
Copy link
Contributor

lol, yeah, no idea. I've had my editor do stuff like that too. If the editor refuses I can fix it (emacs! :) )

@faddat
Copy link
Member Author

faddat commented May 3, 2023

@nicolaslara I've fixed it -- those links had a space between ] and ( so my editor did magic to them

Copy link
Member

@p0mvn p0mvn left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you

@p0mvn p0mvn merged commit 560224f into main May 3, 2023
@p0mvn p0mvn deleted the use-errors-module branch May 3, 2023 15:27
mergify bot pushed a commit that referenced this pull request May 3, 2023
* use cosmossdk.io/errors

* update changelog

* fix links so they don't violate no-bare-url

(cherry picked from commit 560224f)

# Conflicts:
#	CHANGELOG.md
#	app/params/config.go
#	go.mod
#	go.sum
#	osmomath/go.mod
#	osmoutils/go.mod
#	tests/cl-genesis-positions/go.mod
#	tests/cl-go-client/go.mod
#	tests/cl-go-client/go.sum
#	x/concentrated-liquidity/incentives_test.go
#	x/cosmwasmpool/model/msgs.go
#	x/epochs/go.mod
#	x/epochs/go.sum
#	x/gamm/handler.go
#	x/gamm/keeper/migrate_test.go
#	x/gamm/pool-models/balancer/msgs.go
#	x/ibc-hooks/go.mod
#	x/ibc-hooks/go.sum
#	x/pool-incentives/types/errors.go
#	x/superfluid/keeper/migrate_test.go
#	x/superfluid/keeper/stake_test.go
#	x/superfluid/keeper/superfluid_asset_store.go
#	x/superfluid/types/msgs.go
#	x/tokenfactory/keeper/before_send.go
#	x/tokenfactory/types/errors.go
#	x/tokenfactory/types/msgs.go
@p0mvn p0mvn mentioned this pull request May 3, 2023
@faddat faddat mentioned this pull request May 7, 2023
18 tasks
pysel pushed a commit that referenced this pull request Jun 6, 2023
* use cosmossdk.io/errors

* update changelog

* fix links so they don't violate no-bare-url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants