fix: correct path required proto testdata (#14991)
This commit is contained in:
Vendored
+4
-4
@@ -43,14 +43,14 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
func NewTestAmino() *amino.Codec {
|
||||
cdc := amino.NewCodec()
|
||||
cdc.RegisterInterface((*Animal)(nil), nil)
|
||||
cdc.RegisterConcrete(&Dog{}, "testdata/Dog", nil)
|
||||
cdc.RegisterConcrete(&Cat{}, "testdata/Cat", nil)
|
||||
cdc.RegisterConcrete(&Dog{}, "testpb/Dog", nil)
|
||||
cdc.RegisterConcrete(&Cat{}, "testpb/Cat", nil)
|
||||
|
||||
cdc.RegisterInterface((*HasAnimalI)(nil), nil)
|
||||
cdc.RegisterConcrete(&HasAnimal{}, "testdata/HasAnimal", nil)
|
||||
cdc.RegisterConcrete(&HasAnimal{}, "testpb/HasAnimal", nil)
|
||||
|
||||
cdc.RegisterInterface((*HasHasAnimalI)(nil), nil)
|
||||
cdc.RegisterConcrete(&HasHasAnimal{}, "testdata/HasHasAnimal", nil)
|
||||
cdc.RegisterConcrete(&HasHasAnimal{}, "testpb/HasHasAnimal", nil)
|
||||
|
||||
return cdc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user