impermax-sdk 2.1.39 → 2.1.40

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.
@@ -174,6 +174,7 @@ class OnchainPermitHelper {
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);
177
178
  const permitDetailsType = 'tuple(address tokenAddress, uint160 amount, uint48 expiration, uint48 nonce)';
178
179
  const details = {
179
180
  token: token._address,
@@ -186,9 +187,10 @@ class OnchainPermitHelper {
186
187
  spender,
187
188
  sigDeadline: this.deadline,
188
189
  });
190
+ console.log("jsonData", jsonData);
189
191
  return {
190
192
  permitType: onchainTypes_1.PermitType.PERMIT2_SINGLE,
191
- permitData: ethers_1.ethers.utils.defaultAbiCoder.encode([permitDetailsType, 'address', 'uint256'], [token._address, spender, this.deadline]),
193
+ permitData: ethers_1.ethers.utils.defaultAbiCoder.encode([permitDetailsType, 'address', 'uint256'], [details, spender, this.deadline]),
192
194
  signature: yield this.getSignature(owner, jsonData)
193
195
  };
194
196
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.39",
3
+ "version": "2.1.40",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",