From 147904e2378d04a11d5790a10356df9b1986b107 Mon Sep 17 00:00:00 2001 From: bumi Date: Tue, 10 Apr 2018 16:40:11 +0200 Subject: [PATCH] maybe more consitent --- contracts/Operator.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/Operator.sol b/contracts/Operator.sol index 76fe3bd..79d070f 100644 --- a/contracts/Operator.sol +++ b/contracts/Operator.sol @@ -76,7 +76,8 @@ contract Operator is Upgradeable { 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]; return ( p.creator,