impermax-sdk 2.1.40 → 2.1.41

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.
@@ -170,11 +170,10 @@ class OnchainPermitHelper {
170
170
  }
171
171
  getPermit2Single(token, owner, spender, value) {
172
172
  return __awaiter(this, void 0, void 0, function* () {
173
- const allowanceData = yield this.permit2.methods.allowance(owner, token.address, spender).call();
173
+ const allowanceData = yield this.permit2.methods.allowance(owner, token._address, spender).call();
174
174
  if (!allowanceData)
175
175
  throw new Error("Invalid permit2 allowance data");
176
176
  const nonce = allowanceData.nonce;
177
- console.log("token._address", token._address);
178
177
  const permitDetailsType = 'tuple(address tokenAddress, uint160 amount, uint48 expiration, uint48 nonce)';
179
178
  const details = {
180
179
  token: token._address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.40",
3
+ "version": "2.1.41",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",