impermax-sdk 2.1.42 → 2.1.44
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.
|
@@ -129,6 +129,7 @@ class OnchainPermitHelper {
|
|
|
129
129
|
reject(err);
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
|
+
console.log("signature", data.result);
|
|
132
133
|
resolve(data.result);
|
|
133
134
|
}
|
|
134
135
|
});
|
|
@@ -174,7 +175,7 @@ class OnchainPermitHelper {
|
|
|
174
175
|
if (!allowanceData)
|
|
175
176
|
throw new Error("Invalid permit2 allowance data");
|
|
176
177
|
const nonce = allowanceData.nonce;
|
|
177
|
-
const permitDetailsType = 'tuple(address
|
|
178
|
+
const permitDetailsType = 'tuple(address token, uint160 amount, uint48 expiration, uint48 nonce)';
|
|
178
179
|
const details = {
|
|
179
180
|
token: token._address,
|
|
180
181
|
amount: value.toString(),
|