Fix for new Contribution#totalKreditsEarned type #201

Merged
bumi merged 2 commits from update-for-new-amounts into master 2022-10-06 10:26:09 +00:00
Showing only changes of commit 57934ae7a3 - Show all commits
+2 -2
View File
@@ -119,6 +119,7 @@ export default Service.extend({
});
raucao commented 2022-10-06 08:58:33 +00:00 (Migrated from github.com)
Review

This seems like a leftover from debugging?

This seems like a leftover from debugging?
this.set('kredits', kredits);
console.log(kredits.Contributor.contract.address);
this.set('currentBlock', await kredits.provider.getBlockNumber());
if (this.currentUserAccounts && this.currentUserAccounts.length > 0) {
@@ -153,8 +154,7 @@ export default Service.extend({
}),
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
.then(total => total.toNumber());
return this.kredits.Contribution.functions.totalKreditsEarned(true);
}),
kreditsByContributor: computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function() {