From 10763b1e7fb252933805d639fa80e7178f97b3f1 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 5 Feb 2017 21:52:12 +0800 Subject: [PATCH] Update balance on ProposalExecuted --- app/controllers/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/index.js b/app/controllers/index.js index 85fa5fe..353f04f 100644 --- a/app/controllers/index.js +++ b/app/controllers/index.js @@ -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: {