@zyfai/sdk 0.2.28 → 0.2.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 CHANGED
@@ -684,7 +684,7 @@ 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) {
687
+ if (!code || code === "0x" || code.length === 2 || code.length === 48) {
688
688
  return "EOA";
689
689
  }
690
690
  try {
package/dist/index.mjs CHANGED
@@ -660,7 +660,7 @@ 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) {
663
+ if (!code || code === "0x" || code.length === 2 || code.length === 48) {
664
664
  return "EOA";
665
665
  }
666
666
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
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",