Closed sirhill closed 4 years ago
A new function execute(uint256 _proposalId) public returns (bool) should be added to the voting contract.
execute(uint256 _proposalId) public returns (bool)
This function should execute the resolution hash when the vote is successful on a target contract.
In VotingCore, the storage should add an address targetContract field in the Proposal structure.
VotingCore
address targetContract
Proposal
'hash' should be renamed for clarity into resolutionHash
resolutionHash
Implementation is covered with the following commit: https://github.com/c-layer/contracts/commit/ec3578785817b9a89614ddc8972fd83528838071
A new function
execute(uint256 _proposalId) public returns (bool)
should be added to the voting contract.This function should execute the resolution hash when the vote is successful on a target contract.
In
VotingCore
, the storage should add anaddress targetContract
field in theProposal
structure.'hash' should be renamed for clarity into
resolutionHash