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

change error text of total escrow migration #3775

Merged

Conversation

crodriguezvega
Copy link
Contributor

Description

A small one... Just noticed that error message did not follow the convention.

closes: #XXXX

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


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 and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@@ -109,7 +109,7 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
}

if err := cfg.RegisterMigration(types.ModuleName, 2, m.MigrateTotalEscrowForDenom); err != nil {
panic(fmt.Sprintf("failed to migrate total escrow amount from version 2 to 3: %v", err))
panic(fmt.Sprintf("failed to migrate transfer app from version 2 to 3: %v", err))
}

if err := cfg.RegisterMigration(types.ModuleName, 3, m.MigrateParams); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update also the error text for this one in a separate PR. Didn't do it here to make backport easier.

Copy link
Contributor

@DimitrisJim DimitrisJim Jun 7, 2023

Choose a reason for hiding this comment

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

doesn't it make more sense to be specific about which migration failed? Or is this indicated someplace else?

@codecov-commenter
Copy link

Codecov Report

Merging #3775 (6958eb1) into main (c5fd97d) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3775   +/-   ##
=======================================
  Coverage   78.75%   78.75%           
=======================================
  Files         187      187           
  Lines       12890    12890           
=======================================
  Hits        10151    10151           
  Misses       2308     2308           
  Partials      431      431           
Impacted Files Coverage Δ
modules/apps/transfer/module.go 52.63% <0.00%> (ø)

@crodriguezvega crodriguezvega merged commit d7d9fa9 into main Jun 7, 2023
@crodriguezvega crodriguezvega deleted the carlos/update-error-message-total-escrow-migration branch June 7, 2023 21:55
mergify bot pushed a commit that referenced this pull request Jun 7, 2023
crodriguezvega added a commit that referenced this pull request Jun 8, 2023
(cherry picked from commit d7d9fa9)

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
@faddat faddat mentioned this pull request Jun 23, 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.

5 participants