impermax-sdk 2.1.41 → 2.1.43

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,12 +174,12 @@ class OnchainPermitHelper {
174
174
  if (!allowanceData)
175
175
  throw new Error("Invalid permit2 allowance data");
176
176
  const nonce = allowanceData.nonce;
177
- const permitDetailsType = 'tuple(address tokenAddress, uint160 amount, uint48 expiration, uint48 nonce)';
177
+ const permitDetailsType = 'tuple(address token, uint160 amount, uint48 expiration, uint48 nonce)';
178
178
  const details = {
179
179
  token: token._address,
180
180
  amount: value.toString(),
181
181
  expiration: this.deadline,
182
- nonce: nonce.toHexString(),
182
+ nonce: ethers_1.BigNumber.from(nonce).toHexString(),
183
183
  };
184
184
  const jsonData = yield this.getPermit2SingleJSONData({
185
185
  details,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.41",
3
+ "version": "2.1.43",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",