From 4171212fcee342e629375b47c8bbdd0af79ee09b Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 4 Oct 2018 16:12:13 -0400 Subject: [PATCH] Register Account interface with amino in types --- types/wire.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/wire.go b/types/wire.go index ad1f2e303..25212484d 100644 --- a/types/wire.go +++ b/types/wire.go @@ -3,6 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/wire" + "github.com/cosmos/cosmos-sdk/x/auth" ) var typesCodec = wire.NewCodec() @@ -15,6 +16,7 @@ func init() { // codec. func RegisterWire(codec *wire.Codec) { sdk.RegisterWire(codec) + codec.RegisterInterface((*auth.Account)(nil), nil) codec.RegisterConcrete(&Transaction{}, "types/Transaction", nil) codec.RegisterConcrete(&Account{}, "types/Account", nil) }