@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.
Files changed (2) hide show
  1. package/dist/DripSdk.js +2 -1
  2. 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
- const decimals = yield this.getERC20Precission(tokenAddress);
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",