impermax-sdk 2.1.35 → 2.1.37
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,10 +170,11 @@ 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);
|
|
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(allowanceData, allowanceData.nonce);
|
|
177
178
|
const permitDetailsType = 'tuple(address tokenAddress, uint160 amount, uint48 expiration, uint48 nonce)';
|
|
178
179
|
const details = {
|
|
179
180
|
token: token._address,
|