From f0b75d96db5103873c1570c2eafb8db5e3817ed8 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 5 Apr 2019 12:31:21 +0200 Subject: [PATCH] No bignumber anymore as numbers are uint32 in the contract so no bignumber in JS anymore --- app/services/kredits.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/kredits.js b/app/services/kredits.js index 4dadb25..e33b877 100644 --- a/app/services/kredits.js +++ b/app/services/kredits.js @@ -171,7 +171,6 @@ export default Service.extend({ return this.kredits.Contributor .functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject')) .then((id) => { - id = id.toNumber(); // check if the user is a contributor or not if (id === 0) { return RSVP.resolve(); @@ -234,7 +233,7 @@ export default Service.extend({ this.contributors .findBy('id', contributorId.toString()) - .incrementProperty('balance', amount.toNumber()); + .incrementProperty('balance', amount); }, handleTransfer(from, to, value) {