@dzapio/sdk 2.0.28 → 2.0.29
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.
- package/dist/index.js +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12748,14 +12748,13 @@ var checkEIP2612PermitSupport = async ({
|
|
|
12748
12748
|
}
|
|
12749
12749
|
const results = multicallResult.data;
|
|
12750
12750
|
const [domainSeparatorResult, nonceResult, versionResult, nameResult, permitTypeHashResult] = results;
|
|
12751
|
-
if (domainSeparatorResult.status !== "success" /* success */ || nonceResult.status !== "success" /* success */ || nameResult.status !== "success" /* success */
|
|
12751
|
+
if (domainSeparatorResult.status !== "success" /* success */ || nonceResult.status !== "success" /* success */ || nameResult.status !== "success" /* success */) {
|
|
12752
12752
|
return { supportsPermit: false };
|
|
12753
12753
|
}
|
|
12754
12754
|
const name = nameResult.result;
|
|
12755
12755
|
const nonce = nonceResult.result;
|
|
12756
12756
|
const version = versionResult.status === "success" /* success */ ? versionResult.result : DEFAULT_PERMIT_VERSION;
|
|
12757
|
-
|
|
12758
|
-
if (permitTypeHash.toLowerCase() !== EIP2612_PERMIT_TYPEHASH.toLowerCase()) {
|
|
12757
|
+
if (permitTypeHashResult.status === "success" /* success */ && permitTypeHashResult.result.toLowerCase() !== EIP2612_PERMIT_TYPEHASH.toLowerCase()) {
|
|
12759
12758
|
return { supportsPermit: false };
|
|
12760
12759
|
}
|
|
12761
12760
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -12723,14 +12723,13 @@ var checkEIP2612PermitSupport = async ({
|
|
|
12723
12723
|
}
|
|
12724
12724
|
const results = multicallResult.data;
|
|
12725
12725
|
const [domainSeparatorResult, nonceResult, versionResult, nameResult, permitTypeHashResult] = results;
|
|
12726
|
-
if (domainSeparatorResult.status !== "success" /* success */ || nonceResult.status !== "success" /* success */ || nameResult.status !== "success" /* success */
|
|
12726
|
+
if (domainSeparatorResult.status !== "success" /* success */ || nonceResult.status !== "success" /* success */ || nameResult.status !== "success" /* success */) {
|
|
12727
12727
|
return { supportsPermit: false };
|
|
12728
12728
|
}
|
|
12729
12729
|
const name = nameResult.result;
|
|
12730
12730
|
const nonce = nonceResult.result;
|
|
12731
12731
|
const version = versionResult.status === "success" /* success */ ? versionResult.result : DEFAULT_PERMIT_VERSION;
|
|
12732
|
-
|
|
12733
|
-
if (permitTypeHash.toLowerCase() !== EIP2612_PERMIT_TYPEHASH.toLowerCase()) {
|
|
12732
|
+
if (permitTypeHashResult.status === "success" /* success */ && permitTypeHashResult.result.toLowerCase() !== EIP2612_PERMIT_TYPEHASH.toLowerCase()) {
|
|
12734
12733
|
return { supportsPermit: false };
|
|
12735
12734
|
}
|
|
12736
12735
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|