Skip to content

Commit 63e71be

Browse files
committed
Add comment to vote field
1 parent 89fbcb9 commit 63e71be

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/std/src/results/cosmos_msg.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,14 @@ pub enum WasmMsg {
208208
#[serde(rename_all = "snake_case")]
209209
pub enum GovMsg {
210210
/// This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.
211-
Vote { proposal_id: u64, vote: VoteOption },
211+
Vote {
212+
proposal_id: u64,
213+
/// The vote option.
214+
///
215+
/// This should be called "option" for consistency with Cosmos SDK. Sorry for that.
216+
/// See <https://github.com/CosmWasm/cosmwasm/issues/1571>.
217+
vote: VoteOption,
218+
},
212219
/// This maps directly to [MsgVoteWeighted](https://github.com/cosmos/cosmos-sdk/blob/v0.45.8/proto/cosmos/gov/v1beta1/tx.proto#L66-L78) in the Cosmos SDK with voter set to the contract address.
213220
#[cfg(feature = "cosmwasm_1_2")]
214221
VoteWeighted {

0 commit comments

Comments
 (0)