Register Account interface with amino in types
This commit is contained in:
parent
4ca2b80812
commit
4171212fce
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user