safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
243 stars 179 forks source link

check if the Safe Account is 4337 compatible #735

Closed DaniSomoza closed 3 months ago

DaniSomoza commented 3 months ago

What it solves

Resolves #720

How this PR fixes it

How to test this PR

  // 1) Initialize pack with the Safe Address
  const safe4337Pack = await Safe4337Pack.init({
    ethersAdapter,
    rpcUrl: RPC_URL,
    bundlerUrl: BUNDLER_URL,
    options: {
      safeAddress
    }
  })

You can use this Safes in Sepolia to test this checks: