Update balance on ProposalExecuted

This commit is contained in:
2017-02-05 21:52:12 +08:00
parent 1f39884eef
commit 10763b1e7f
+4
View File
@@ -94,6 +94,10 @@ export default Ember.Controller.extend({
'executed': true,
'votesCount': 2 // TODO use real count
});
this.get('model.contributors')
.findBy('address', data.args.recipient)
.incrementProperty('kredits', data.args.amount.toNumber());
},
actions: {