Skip to content

Commit

Permalink
Merge pull request #55 from provenance-io/vm/msgExec/addMsgExecToBuil…
Browse files Browse the repository at this point in the history
…dMessage

Add new type MsgExec in switch statement
  • Loading branch information
VigM-Figure authored Jun 9, 2023
2 parents dde814c + cc767f3 commit f87096c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/services/messages/build/buildMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ import {
MsgCreateGroup,
MsgSubmitProposal as MsgSubmitGroupProposal,
MsgVote as MsgGroupVote,
MsgExec as MsgGroupExec,
} from '../../../proto/cosmos/group/v1/tx_pb';
import { MemberRequest } from '../../../proto/cosmos/group/v1/types_pb';

const encoder = new TextEncoder();

/**
Expand Down Expand Up @@ -175,6 +175,14 @@ export const buildMessage = (
return msgGroupVote;
}

case 'MsgExec': {
const { proposalId, executor } = params as MsgExecDisplay;
const msgExec = new MsgGroupExec()
.setProposalId(proposalId)
.setExecutor(executor);
return msgExec;
}

case 'MsgInstantiateContract': {
const { sender, admin, codeId, label, msg, fundsList } =
params as MsgInstantiateContractDisplay;
Expand Down

0 comments on commit f87096c

Please sign in to comment.