impermax-sdk 2.1.37 → 2.1.38
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,13 +174,12 @@ class OnchainPermitHelper {
|
|
|
174
174
|
if (!allowanceData)
|
|
175
175
|
throw new Error("Invalid permit2 allowance data");
|
|
176
176
|
const nonce = allowanceData.nonce;
|
|
177
|
-
console.log(allowanceData, allowanceData.nonce);
|
|
178
177
|
const permitDetailsType = 'tuple(address tokenAddress, uint160 amount, uint48 expiration, uint48 nonce)';
|
|
179
178
|
const details = {
|
|
180
179
|
token: token._address,
|
|
181
180
|
amount: value.toString(),
|
|
182
181
|
expiration: this.deadline,
|
|
183
|
-
nonce:
|
|
182
|
+
nonce: nonce.toHexString(),
|
|
184
183
|
};
|
|
185
184
|
const jsonData = yield this.getPermit2SingleJSONData({
|
|
186
185
|
details,
|