add liquidate msg to codec (#792)

This commit is contained in:
Denali Marsh 2021-02-03 23:22:51 +01:00 committed by GitHub
parent dd3470260d
commit cfb9e0cb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -19,4 +19,5 @@ func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(MsgWithdraw{}, "cdp/MsgWithdraw", nil) cdc.RegisterConcrete(MsgWithdraw{}, "cdp/MsgWithdraw", nil)
cdc.RegisterConcrete(MsgDrawDebt{}, "cdp/MsgDrawDebt", nil) cdc.RegisterConcrete(MsgDrawDebt{}, "cdp/MsgDrawDebt", nil)
cdc.RegisterConcrete(MsgRepayDebt{}, "cdp/MsgRepayDebt", nil) cdc.RegisterConcrete(MsgRepayDebt{}, "cdp/MsgRepayDebt", nil)
cdc.RegisterConcrete(MsgLiquidate{}, "cdp/MsgLiquidate", nil)
} }

View File

@ -16,6 +16,7 @@ var (
_ sdk.Msg = &MsgWithdraw{} _ sdk.Msg = &MsgWithdraw{}
_ sdk.Msg = &MsgDrawDebt{} _ sdk.Msg = &MsgDrawDebt{}
_ sdk.Msg = &MsgRepayDebt{} _ sdk.Msg = &MsgRepayDebt{}
_ sdk.Msg = &MsgLiquidate{}
) )
// MsgCreateCDP creates a cdp // MsgCreateCDP creates a cdp