refactor(x/evidence): accept address codec in constructor (#21859)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user