@zyfai/sdk 0.2.28 → 0.2.30
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -687,6 +687,9 @@ var getAccountType = async (address, publicClient) => {
|
|
|
687
687
|
if (!code || code === "0x" || code.length === 2) {
|
|
688
688
|
return "EOA";
|
|
689
689
|
}
|
|
690
|
+
if (code.startsWith("0xef01")) {
|
|
691
|
+
return "EOA";
|
|
692
|
+
}
|
|
690
693
|
try {
|
|
691
694
|
const threshold = await publicClient.readContract({
|
|
692
695
|
address,
|
package/dist/index.mjs
CHANGED
|
@@ -663,6 +663,9 @@ var getAccountType = async (address, publicClient) => {
|
|
|
663
663
|
if (!code || code === "0x" || code.length === 2) {
|
|
664
664
|
return "EOA";
|
|
665
665
|
}
|
|
666
|
+
if (code.startsWith("0xef01")) {
|
|
667
|
+
return "EOA";
|
|
668
|
+
}
|
|
666
669
|
try {
|
|
667
670
|
const threshold = await publicClient.readContract({
|
|
668
671
|
address,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyfai/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.30",
|
|
4
4
|
"description": "TypeScript SDK for Zyfai Yield Optimization Engine - Deploy Safe smart wallets, manage session keys, and interact with DeFi protocols",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|