@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.
- package/dist/DripSdk.js +1 -1
- 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
|
});
|