impermax-sdk 2.1.36 → 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,7 +170,7 @@ 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;
|