Vote()
Less than 1 minute
Vote()
import { defaultRegistryTypes } from "@cosmjs/stargate";
const foundMsgType = defaultRegistryTypes.find(
(element) => element[0] === "/cosmos.group.v1.MsgVote"
)
const finalMsg = {
typeUrl: foundMsgType[0],
value: foundMsgType[1].fromPartial({
"proposalId": "0",
"voter": "",
"option": 0,
"metadata": "",
"exec": 0
}),
}
// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")