Execute
Deploying an Onyx Improvement Propoal (OIP) via onchain activation.
Function Implementation in CHNGovernance
Function Signature
function execute(uint proposalId) public payable returns (uint)Parameters
Example Solidity Implementation
CHNGovernance gov = CHNGovernance(0x123...); // Contract address of CHNGovernance
gov.execute(proposalId).value(999).gas(999)();Web3.js Implementation (v1.2.6)
const tx = await gov.methods.execute(proposalId).send({ from: sender, value: 1 });Technical Considerations
Last updated
