maybe more consitent
This commit is contained in:
parent
7f30006703
commit
147904e237
@ -76,7 +76,8 @@ contract Operator is Upgradeable {
|
|||||||
ProposalCreated(proposalId, msg.sender, p.recipientId, p.amount);
|
ProposalCreated(proposalId, msg.sender, p.recipientId, p.amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getProposal(uint id) public view returns (address creator, uint256 recipientId, uint256 votesCount, uint256 votesNeeded, uint256 amount, bool executed, bytes32 ipfsHash, uint8 hashFunction, uint8 hashSize, uint256[] voterIds, bool exists) {
|
function getProposal(uint proposalId) public view returns (uint256 id, address creator, uint256 recipientId, uint256 votesCount, uint256 votesNeeded, uint256 amount, bool executed, bytes32 ipfsHash, uint8 hashFunction, uint8 hashSize, uint256[] voterIds, bool exists) {
|
||||||
|
id = proposalId;
|
||||||
Proposal storage p = proposals[id];
|
Proposal storage p = proposals[id];
|
||||||
return (
|
return (
|
||||||
p.creator,
|
p.creator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user