Use getProposalById instead of buildModel
This commit is contained in:
@@ -123,6 +123,8 @@ export default Service.extend({
|
||||
},
|
||||
|
||||
getContributorById(id) {
|
||||
id = ethers.utils.bigNumberify(id);
|
||||
|
||||
return this.get('contributorsContract')
|
||||
.then((contract) => contract.getContributorById(id))
|
||||
.then(this.reassembleIpfsHash)
|
||||
@@ -199,6 +201,8 @@ export default Service.extend({
|
||||
},
|
||||
|
||||
getProposalById(id) {
|
||||
id = ethers.utils.bigNumberify(id);
|
||||
|
||||
return this.get('kreditsContract')
|
||||
.then((contract) => contract.proposals(id))
|
||||
.then(this.reassembleIpfsHash)
|
||||
|
||||
Reference in New Issue
Block a user