From 590799a176f01b704fd62dabfc420f48c95583ac Mon Sep 17 00:00:00 2001 From: Kovalov Maxim Date: Mon, 20 Jul 2020 16:28:02 +0300 Subject: [PATCH] Release 1.6.4 (#2331) * fix: gas issues on transaction * feat(version): bump to 1.6.4 --- package.json | 2 +- src/main/token/token-service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 42c03d15d..2d7a04f43 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "selfkey-identity-wallet", "productName": "SelfKey Identity Wallet", - "version": "1.6.3", + "version": "1.6.4", "description": "The Official SelfKey Identity Wallet for Desktop", "browser": [ "chrome" diff --git a/src/main/token/token-service.js b/src/main/token/token-service.js index 845c43ab0..8c3319854 100644 --- a/src/main/token/token-service.js +++ b/src/main/token/token-service.js @@ -59,7 +59,7 @@ export class TokenService { const MAX_GAS = 4500000; const amountWithDecimals = new BigNumber(amount) .times(new BigNumber(10).pow(decimal)) - .toString(); + .toFixed(); const estimate = await tokenContract.methods .transfer(address, amountWithDecimals) .estimateGas({ from: fromAddress });