MsgVoteWeighted constructor

MsgVoteWeighted({
  1. Int64? proposalId,
  2. String? voter,
  3. Iterable<WeightedVoteOption>? options,
})

Implementation

factory MsgVoteWeighted({
  $fixnum.Int64? proposalId,
  $core.String? voter,
  $core.Iterable<$6.WeightedVoteOption>? options,
}) {
  final _result = create();
  if (proposalId != null) {
    _result.proposalId = proposalId;
  }
  if (voter != null) {
    _result.voter = voter;
  }
  if (options != null) {
    _result.options.addAll(options);
  }
  return _result;
}