diff --git a/lib/contracts/proposal.js b/lib/contracts/proposal.js index 83a5eae..cf7e363 100644 --- a/lib/contracts/proposal.js +++ b/lib/contracts/proposal.js @@ -4,7 +4,7 @@ const RSVP = require('rsvp'); const ContributionSerializer = require('../serializers/contribution'); const Base = require('./base'); -class Operator extends Base { +class Proposal extends Base { all() { return this.functions.proposalsCount() .then((count) => { @@ -23,12 +23,6 @@ class Operator extends Base { id = ethers.utils.bigNumberify(id); return this.functions.getProposal(id) - .then((data) => { - // TODO: remove when naming updated on the contract - data.hashDigest = data.ipfsHash; - return data; - }) - // Fetch IPFS data if available .then((data) => { return this.ipfs.catAndMerge(data, ContributionSerializer.deserialize); }); @@ -54,4 +48,4 @@ class Operator extends Base { } } -module.exports = Operator; +module.exports = Proposal