Cast Vote
Placing onchain votes for Onyx Improvement Proposals.
Function Implementation in CHNGovernance
CHNGovernanceFunction Signature
function castVote(uint proposalId, bool support) publicExample Solidity Implementation
CHNGovernance gov = CHNGovernance(0x123...); // Contract address of CHNGovernance
gov.castVote(proposalId, true); // Voting in favor of the proposalWeb3.js Implementation (v1.2.6)
Technical Considerations
Last updated
