refactor(x/evidence): accept address codec in constructor (#21859)

This commit is contained in:
Marko
2024-09-25 09:42:27 +00:00
committed by GitHub
parent c971f75acf
commit d54f6fa95b
14 changed files with 39 additions and 42 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ func unmarshalIndexingConfig(cfg interface{}) (*IndexingConfig, error) {
return &res, err
}
func unmarshalIndexerCustomConfig(cfg interface{}, expectedType interface{}) (interface{}, error) {
func unmarshalIndexerCustomConfig(cfg, expectedType interface{}) (interface{}, error) {
typ := reflect.TypeOf(expectedType)
if reflect.TypeOf(cfg).AssignableTo(typ) {
return cfg, nil
+1
View File
@@ -80,6 +80,7 @@ func TestStart(t *testing.T) {
}
func callCommit(t *testing.T, listener appdata.Listener) {
t.Helper()
cb, err := listener.Commit(appdata.CommitData{})
if err != nil {
t.Fatal(err)