MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / AddVote

Method AddVote

x/gov/keeper.go:288–309  ·  view source on GitHub ↗

===================================================== Votes Adds a vote on a specific proposal

(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress, option VoteOption)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

handleMsgVoteFunction · 0.80

Calls 7

GetProposalMethod · 0.95
setVoteMethod · 0.95
ErrUnknownProposalFunction · 0.85
ErrInactiveProposalFunction · 0.85
validVoteOptionFunction · 0.85
ErrInvalidVoteFunction · 0.85
GetStatusMethod · 0.65

Tested by

no test coverage detected