refactor(x/upgrade)!: use KVStoreService and context.Context (#16227)

This commit is contained in:
Facundo Medica
2023-06-05 13:38:31 +00:00
committed by GitHub
parent 5089313a0a
commit bbab968ee2
24 changed files with 514 additions and 323 deletions
+5 -2
View File
@@ -76,10 +76,13 @@ func (s *E2ETestSuite) TestModuleVersionsCLI() {
// avoid printing as yaml from CLI command
clientCtx.OutputFormat = "JSON"
vm := s.upgradeKeeper.GetModuleVersionMap(s.ctx)
mv := s.upgradeKeeper.GetModuleVersions(s.ctx)
vm, err := s.upgradeKeeper.GetModuleVersionMap(s.ctx)
s.Require().NoError(err)
s.Require().NotEmpty(vm)
mv, err := s.upgradeKeeper.GetModuleVersions(s.ctx)
s.Require().NoError(err)
for _, tc := range testCases {
s.Run(fmt.Sprintf("Case %s", tc.msg), func() {
expect := mv