@zyfai/sdk 0.2.29 → 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 CHANGED
@@ -684,7 +684,10 @@ var isSafeDeployed = async (address, publicClient) => {
684
684
  var getAccountType = async (address, publicClient) => {
685
685
  try {
686
686
  const code = await publicClient.getCode({ address });
687
- if (!code || code === "0x" || code.length === 2 || code.length === 48) {
687
+ if (!code || code === "0x" || code.length === 2) {
688
+ return "EOA";
689
+ }
690
+ if (code.startsWith("0xef01")) {
688
691
  return "EOA";
689
692
  }
690
693
  try {
package/dist/index.mjs CHANGED
@@ -660,7 +660,10 @@ var isSafeDeployed = async (address, publicClient) => {
660
660
  var getAccountType = async (address, publicClient) => {
661
661
  try {
662
662
  const code = await publicClient.getCode({ address });
663
- if (!code || code === "0x" || code.length === 2 || code.length === 48) {
663
+ if (!code || code === "0x" || code.length === 2) {
664
+ return "EOA";
665
+ }
666
+ if (code.startsWith("0xef01")) {
664
667
  return "EOA";
665
668
  }
666
669
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.2.29",
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",