remove amino from x/capability (#7389)
* remove amino from x/capability * remove codec
This commit is contained in:
parent
d55c1a2665
commit
06b84d902a
|
@ -47,10 +47,8 @@ func (AppModuleBasic) Name() string {
|
|||
return types.ModuleName
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the capability module's types to the LegacyAmino codec.
|
||||
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
}
|
||||
// RegisterLegacyAminoCodec does nothing. Capability does not support amino.
|
||||
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {}
|
||||
|
||||
// RegisterInterfaces registers the module's interface types
|
||||
func (a AppModuleBasic) RegisterInterfaces(_ cdctypes.InterfaceRegistry) {}
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||
// capability module.
|
||||
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
cdc.RegisterConcrete(&Capability{}, "cosmos-sdk/Capability", nil)
|
||||
cdc.RegisterConcrete(Owner{}, "cosmos-sdk/Owner", nil)
|
||||
cdc.RegisterConcrete(&CapabilityOwners{}, "cosmos-sdk/CapabilityOwners", nil)
|
||||
}
|
||||
|
||||
var (
|
||||
amino = codec.NewLegacyAmino()
|
||||
)
|
||||
|
||||
func init() {
|
||||
RegisterLegacyAminoCodec(amino)
|
||||
amino.Seal()
|
||||
}
|
Loading…
Reference in New Issue