Skip to content

Commit

Permalink
refactor and add missing msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 17, 2024
1 parent 01c0bb3 commit cc3f4f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions x/marker/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ var AllRequestMsgs = []sdk.Msg{
(*MsgSetDenomMetadataRequest)(nil),
(*MsgGrantAllowanceRequest)(nil),
(*MsgAddFinalizeActivateMarkerRequest)(nil),
(*MsgSupplyIncreaseProposalRequest)(nil),
(*MsgSupplyDecreaseProposalRequest)(nil),
(*MsgUpdateRequiredAttributesRequest)(nil),
(*MsgUpdateForcedTransferRequest)(nil),
(*MsgSetAccountDataRequest)(nil),
(*MsgUpdateSendDenyListRequest)(nil),
(*MsgAddNetAssetValuesRequest)(nil),

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

func NewMsgFinalizeRequest(denom string, admin sdk.AccAddress) *MsgFinalizeRequest {
Expand Down
7 changes: 4 additions & 3 deletions x/marker/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ func TestAllMsgsGetSigners(t *testing.T) {
func(signer string) sdk.Msg { return &MsgGrantAllowanceRequest{Administrator: signer} },
func(signer string) sdk.Msg { return &MsgAddFinalizeActivateMarkerRequest{FromAddress: signer} },
func(signer string) sdk.Msg { return &MsgSupplyIncreaseProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgSupplyDecreaseProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgUpdateRequiredAttributesRequest{TransferAuthority: signer} },
func(signer string) sdk.Msg { return &MsgUpdateForcedTransferRequest{Authority: signer} },
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 &MsgSetAdministratorProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgRemoveAdministratorProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgChangeStatusProposalRequest{Authority: signer} },
func(signer string) sdk.Msg { return &MsgWithdrawEscrowProposalRequest{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 cc3f4f7

Please sign in to comment.