Get Receipt
This function fetches a ballot detail for each specific voter based on a specific governance proposal.
Function Implementation in CHNGovernance
CHNGovernanceFunction Signature
function getReceipt(uint proposalId, address voter) public view returns (Receipt memory)Parameters
Example Solidity Implementation
CHNGovernance gov = CHNGovernance(0x123...); // Contract address of CHNGovernance
Receipt memory ballot = gov.getReceipt(proposalId, voterAddress);Web3.js Implementation (v1.2.6)
Technical Considerations
Last updated
