@dripfi/drip-sdk 1.2.11 → 1.2.12
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 +2 -1
- package/package.json +1 -1
package/dist/DripSdk.js
CHANGED
@@ -532,7 +532,8 @@ class DripSdk {
|
|
532
532
|
if (!this.signer) {
|
533
533
|
throw Error('No signer provided');
|
534
534
|
}
|
535
|
-
|
535
|
+
//TODO: Temporary fix for Base L2 Deposits getting decimals does crash for some reason
|
536
|
+
const decimals = tokenAddress === '0x4200000000000000000000000000000000000006' ? 18 : yield this.getERC20Precission(tokenAddress);
|
536
537
|
const erc20Instance = spool_v2_sdk_1.ERC20__factory.connect(tokenAddress, this.signer);
|
537
538
|
const approveTx = yield erc20Instance.transfer(receiver, ethers_1.ethers.utils.parseUnits(amount, decimals));
|
538
539
|
const receipt = yield approveTx.wait();
|