-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(x/slashing): migrate AddrPubkeyRelation
to collections
#17044
Conversation
…ita/coll-addrpkrel
AddrPubkeyRelation
to collections
…ita/coll-addrpkrel
…ita/coll-addrpkrel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, why cannot you keep AddrPubkeyRelationKey
function? It seems that the logic is still the same, just the prefix changes. Now you are duplicating the logic everywhere.
Sorry for the confusion. This was not ready yet when you reviewed and I accidentally made it r4r. This got resolved in the later commits. |
…ita/coll-addrpkrel
…ita/coll-addrpkrel
LGTM, can we remove func (s *KeeperTestSuite) TestDiffCollsMigration() {
s.SetupTest()
pks := simtestutil.CreateTestPubKeys(100)
err := sdktestutil.DiffCollectionsMigration(
s.ctx,
s.key,
100,
func(i int64) {
s.slashingKeeper.AddPubkey(s.ctx, pks[i])
},
"f637ced4115e154632912552c6974d5ec8ffcb013ac446e91b0fb2d76f669d87",
)
s.Require().NoError(err)
} |
we can remove |
…ita/coll-addrpkrel
…ita/coll-addrpkrel
…ita/coll-addrpkrel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Closes: #16364
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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change