@pioneer-platform/eth-network 8.1.67 → 8.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -394,7 +394,8 @@ var get_token_transfer_data = function (toAddress, amount, contract) {
394
394
  return [4 /*yield*/, newContract.methods.decimals().call()];
395
395
  case 2:
396
396
  decimals = _a.sent();
397
- value = new BigNumber(amount).times(new BigNumber(10).pow(decimals)).toFixed();
397
+ value = web3.utils.toBN(amount).mul(web3.utils.toBN(10).pow(web3.utils.toBN(decimals)));
398
+ log.info(tag, "value: ", value.toString());
398
399
  log.info(tag, "value: ", value);
399
400
  return [4 /*yield*/, web3.eth.abi.encodeFunctionCall({
400
401
  name: 'transfer',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/eth-network",
3
- "version": "8.1.67",
3
+ "version": "8.1.68",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {