Skip to content

chore!: migrate escrow accounts#2993

Merged
mpoke merged 2 commits into
mainfrom
sainoe/migrate-escrow-accounts
Mar 13, 2024
Merged

chore!: migrate escrow accounts#2993
mpoke merged 2 commits into
mainfrom
sainoe/migrate-escrow-accounts

Conversation

@sainoe

@sainoe sainoe commented Mar 12, 2024

Copy link
Copy Markdown
Contributor

Description

Closes: #2989

cc @jtieri


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 API, client, or state breaking change (i.e., requires minor or major version bump)
  • 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 in .changelog (for details, see contributing guidelines)
  • 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 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

@sainoe sainoe requested a review from a team March 12, 2024 09:16
@sainoe sainoe changed the base branch from main to release/v15.1.x March 12, 2024 09:17
Comment thread app/upgrades/v15/upgrades.go Outdated
Comment on lines 394 to 414

Check warning

Code scanning / CodeQL

Iteration over map

Iteration over map may be a possible source of non-determinism

@mpoke mpoke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please rebase on main and add label to backport to v15.1.x. Also, see my comments below.

Comment thread app/upgrades/v15/upgrades.go Outdated
Comment thread app/upgrades/v15/upgrades.go Outdated
Comment thread app/upgrades/v15/upgrades.go Outdated
Comment thread app/upgrades/v15/upgrades_test.go Outdated
@sainoe sainoe changed the base branch from release/v15.1.x to main March 12, 2024 13:26
@sainoe sainoe force-pushed the sainoe/migrate-escrow-accounts branch from bf5bed2 to d064275 Compare March 12, 2024 14:10
* Add UT for escrow accounts migration
* Add changelog entry
* Address comments and fix test issue
@sainoe sainoe force-pushed the sainoe/migrate-escrow-accounts branch from d064275 to 5ad7047 Compare March 12, 2024 14:19

@MSalopek MSalopek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Found no issues.

LGTM!

// to be represented using an 64-bit integer. Therefore, it's added to the
// escrow updates list under the condition that the amount is successfully
// converted to the sdk.Int type.
if amt, ok := sdk.NewIntFromString("4388000000000000000000"); !ok {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unfortunately there isn't a sdk.MustNewIntFromString function so this will do.

@mpoke mpoke merged commit d8d90cc into main Mar 13, 2024
@mpoke mpoke deleted the sainoe/migrate-escrow-accounts branch March 13, 2024 17:59
mergify Bot pushed a commit that referenced this pull request Mar 13, 2024
* Add UT for escrow accounts migration
* Add changelog entry
* Address comments and fix test issue

(cherry picked from commit d8d90cc)
sainoe added a commit that referenced this pull request Mar 13, 2024
* Add UT for escrow accounts migration
* Add changelog entry
* Address comments and fix test issue

(cherry picked from commit d8d90cc)

Co-authored-by: Simon Noetzlin <simon.ntz@gmail.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.

Migrate escrow accounts with discrepancies

4 participants