diff --git a/x/pool-incentives/genesis_test.go b/x/pool-incentives/genesis_test.go index 15d0aa7b19d..1a4c13b9aff 100644 --- a/x/pool-incentives/genesis_test.go +++ b/x/pool-incentives/genesis_test.go @@ -45,6 +45,7 @@ func TestMarshalUnmarshalGenesis(t *testing.T) { genesis := testGenesis pool_incentives.InitGenesis(ctx, *app.PoolIncentivesKeeper, &genesis) + assert.Equal(t, app.PoolIncentivesKeeper.GetDistrInfo(ctx), *testGenesis.DistrInfo) genesisExported := am.ExportGenesis(ctx, appCodec) assert.NotPanics(t, func() { @@ -53,6 +54,7 @@ func TestMarshalUnmarshalGenesis(t *testing.T) { ctx = ctx.WithBlockTime(now.Add(time.Second)) am := pool_incentives.NewAppModule(appCodec, *app.PoolIncentivesKeeper) am.InitGenesis(ctx, appCodec, genesisExported) + }) } diff --git a/x/superfluid/types/codec.go b/x/superfluid/types/codec.go index 4fecdda4af1..3a7ab325d0e 100644 --- a/x/superfluid/types/codec.go +++ b/x/superfluid/types/codec.go @@ -9,12 +9,12 @@ import ( ) func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgSuperfluidDelegate{}, "osmosis/superfluid/superfluid-delegate", nil) - cdc.RegisterConcrete(&MsgSuperfluidUndelegate{}, "osmosis/superfluid/superfluid-undelegate", nil) - cdc.RegisterConcrete(&MsgLockAndSuperfluidDelegate{}, "osmosis/superfluid/lock-and-superfluid-delegate", nil) - cdc.RegisterConcrete(&MsgSuperfluidUnbondLock{}, "osmosis/superfluid/superfluid-unbond-lock", nil) - cdc.RegisterConcrete(&SetSuperfluidAssetsProposal{}, "osmosis/superfluid/set-superfluid-assets-proposal", nil) - cdc.RegisterConcrete(&RemoveSuperfluidAssetsProposal{}, "osmosis/superfluid/remove-superfluid-assets-proposal", nil) + cdc.RegisterConcrete(&MsgSuperfluidDelegate{}, "osmosis/superfluid-delegate", nil) + cdc.RegisterConcrete(&MsgSuperfluidUndelegate{}, "osmosis/superfluid-undelegate", nil) + cdc.RegisterConcrete(&MsgLockAndSuperfluidDelegate{}, "osmosis/lock-and-superfluid-delegate", nil) + cdc.RegisterConcrete(&MsgSuperfluidUnbondLock{}, "osmosis/superfluid-unbond-lock", nil) + cdc.RegisterConcrete(&SetSuperfluidAssetsProposal{}, "osmosis/set-superfluid-assets-proposal", nil) + cdc.RegisterConcrete(&RemoveSuperfluidAssetsProposal{}, "osmosis/del-superfluid-assets-proposal", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -22,7 +22,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgSuperfluidDelegate{}, &MsgSuperfluidUndelegate{}, - // &MsgSuperfluidRedelegate{}, &MsgLockAndSuperfluidDelegate{}, &MsgSuperfluidUnbondLock{}, )