chore: lint v2 (#24118)

This commit is contained in:
Alex | Interchain Labs
2025-03-25 15:57:24 +00:00
committed by GitHub
parent 9acd7716dd
commit b7a20b81f6
87 changed files with 298 additions and 288 deletions
+6 -6
View File
@@ -322,9 +322,9 @@ func (aa AccAddress) Format(s fmt.State, verb rune) {
case 's':
_, _ = s.Write([]byte(aa.String()))
case 'p':
_, _ = s.Write([]byte(fmt.Sprintf("%p", aa)))
_, _ = fmt.Fprintf(s, "%p", aa)
default:
_, _ = s.Write([]byte(fmt.Sprintf("%X", []byte(aa))))
_, _ = fmt.Fprintf(s, "%X", []byte(aa))
}
}
@@ -486,9 +486,9 @@ func (va ValAddress) Format(s fmt.State, verb rune) {
case 's':
_, _ = s.Write([]byte(va.String()))
case 'p':
_, _ = s.Write([]byte(fmt.Sprintf("%p", va)))
_, _ = fmt.Fprintf(s, "%p", va)
default:
_, _ = s.Write([]byte(fmt.Sprintf("%X", []byte(va))))
_, _ = fmt.Fprintf(s, "%X", []byte(va))
}
}
@@ -670,9 +670,9 @@ func (ca ConsAddress) Format(s fmt.State, verb rune) {
case 's':
_, _ = s.Write([]byte(ca.String()))
case 'p':
_, _ = s.Write([]byte(fmt.Sprintf("%p", ca)))
_, _ = fmt.Fprintf(s, "%p", ca)
default:
_, _ = s.Write([]byte(fmt.Sprintf("%X", []byte(ca))))
_, _ = fmt.Fprintf(s, "%X", []byte(ca))
}
}
+1 -1
View File
@@ -81,7 +81,7 @@ func (s *paginationTestSuite) SetupTest() {
s.NoError(err)
ctx := app.BaseApp.NewContextLegacy(false, cmtproto.Header{Height: 1})
ctx := app.NewContextLegacy(false, cmtproto.Header{Height: 1})
s.ctx, s.bankKeeper, s.accountKeeper, s.cdc, s.app, s.interfaceReg = ctx, bankKeeper, accountKeeper, cdc, app, reg
}