@dripfi/drip-sdk 1.1.18 → 1.1.19

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/dist/DripSdk.js +1 -1
  2. package/package.json +1 -1
package/dist/DripSdk.js CHANGED
@@ -350,7 +350,7 @@ class DripSdk {
350
350
  }
351
351
  const decimals = yield this.getERC20Precission(this.dripConfig.dripTokenAddress);
352
352
  const amountWithDecimals = parseFloat(parseFloat(amount).toFixed(decimals));
353
- const recycleTx = yield this.dripTokenRecyclerContract.recycle(amountWithDecimals.toString());
353
+ const recycleTx = yield this.dripTokenRecyclerContract.recycle(ethers_1.ethers.utils.parseUnits(amountWithDecimals.toString(), decimals).toString());
354
354
  const receipt = yield recycleTx.wait();
355
355
  return receipt.transactionHash;
356
356
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",