No bignumber anymore
as numbers are uint32 in the contract so no bignumber in JS anymore
This commit is contained in:
@@ -171,7 +171,6 @@ export default Service.extend({
|
|||||||
return this.kredits.Contributor
|
return this.kredits.Contributor
|
||||||
.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject'))
|
.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject'))
|
||||||
.then((id) => {
|
.then((id) => {
|
||||||
id = id.toNumber();
|
|
||||||
// check if the user is a contributor or not
|
// check if the user is a contributor or not
|
||||||
if (id === 0) {
|
if (id === 0) {
|
||||||
return RSVP.resolve();
|
return RSVP.resolve();
|
||||||
@@ -234,7 +233,7 @@ export default Service.extend({
|
|||||||
|
|
||||||
this.contributors
|
this.contributors
|
||||||
.findBy('id', contributorId.toString())
|
.findBy('id', contributorId.toString())
|
||||||
.incrementProperty('balance', amount.toNumber());
|
.incrementProperty('balance', amount);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleTransfer(from, to, value) {
|
handleTransfer(from, to, value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user