Skip to content

Commit

Permalink
update msg tests, update all msgs with proposal msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 17, 2024
1 parent b5b266d commit a14237a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/marker/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ var AllRequestMsgs = []sdk.Msg{
(*MsgSetDenomMetadataRequest)(nil),
(*MsgGrantAllowanceRequest)(nil),
(*MsgAddFinalizeActivateMarkerRequest)(nil),
(*MsgSupplyIncreaseProposalRequest)(nil),
(*MsgUpdateRequiredAttributesRequest)(nil),
(*MsgUpdateForcedTransferRequest)(nil),
(*MsgSetAccountDataRequest)(nil),
(*MsgUpdateSendDenyListRequest)(nil),
(*MsgAddNetAssetValuesRequest)(nil),

(*MsgSupplyIncreaseProposalRequest)(nil),
(*MsgSupplyDecreaseProposalRequest)(nil),
(*MsgChangeStatusProposalRequest)(nil),
(*MsgSetDenomMetadataProposalRequest)(nil),
(*MsgSetAdministratorProposalRequest)(nil),
(*MsgRemoveAdministratorProposalRequest)(nil),
}

func NewMsgFinalizeRequest(denom string, admin sdk.AccAddress) *MsgFinalizeRequest {
Expand Down
5 changes: 5 additions & 0 deletions x/marker/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ func TestAllMsgsGetSigners(t *testing.T) {
func(signer string) sdk.Msg { return &MsgSetAccountDataRequest{Signer: signer} },
func(signer string) sdk.Msg { return &MsgUpdateSendDenyListRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgAddNetAssetValuesRequest{Administrator: signer} },
func(signer string) sdk.Msg { return &MsgSupplyDecreaseProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgChangeStatusProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgSetDenomMetadataProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgRemoveAdministratorProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgSetAdministratorProposalRequest{Authority: signer} },
}

testutil.RunGetSignersTests(t, AllRequestMsgs, msgMakers, nil)
Expand Down

0 comments on commit a14237a

Please sign in to comment.