No bignumber anymore

as numbers are uint32 in the contract so no bignumber in JS anymore
This commit is contained in:
2019-04-05 12:31:21 +02:00
parent 190975b981
commit f0b75d96db
+1 -2
View File
@@ -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) {