Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: "The Safe SDK could not be initialized" #679

Closed
mattstam opened this issue Jan 27, 2024 · 7 comments
Closed

bug: "The Safe SDK could not be initialized" #679

mattstam opened this issue Jan 27, 2024 · 7 comments

Comments

@mattstam
Copy link

Prerequisites

  • First, many thanks for taking part in the community and helping us improve. We appreciate that a lot.
  • Support questions are better asked in our Discord chat: https://chat.safe.global/
  • Please ensure the issue isn't already reported.

Please delete the above section and the instructions in the sections below before submitting

Description

image

Error: The Safe SDK could not be initialized. Please be aware that we only support v1.0.0 Safe Accounts and up.

Environment

  • Safe Core SDK version: Unknown
  • Safe contract version: v1.4.1
  • Environment:
    • web app
    • tried on both Chrome and Firefox

Steps to reproduce

  1. Deploy a v1.4.1 Safe
  2. Connect Safe via WalletConnect on the webapp
  3. Attempt to sign

Expected result

Owner can sign

Additional context

browser console errors:

uncaught (in promise) Error: Unsupported chains. connect() optionalNamespaces, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }
    at hs.validateNamespaces (index.es.js:1:22632)
    at hs.isValidConnect (index.es.js:1:22459)
    at hs.onSessionProposeRequest (index.es.js:1:15540)
    at hs.onPairingCreated (index.es.js:1:21785)
    at EventEmitter.<anonymous> (index.es.js:1:28456)
    at EventEmitter.emit (events.js:158:1)
    at kt.pair (index.es.js:1:44439)
    at async index.tsx:48:9
 
Code 103: Error creating a SafeTransaction (The Safe SDK could not be initialized. Please be aware that we only support v1.0.0 Safe Accounts and up.)

Code 105: Error initializing the Safe Core SDK (F.safeDeploymentsVersions[m] is undefined)

Code 105: Error initializing the Safe Core SDK (Cannot read properties of undefined (reading 'safeMasterCopyVersion'))

[Spindl SDK] request failed TypeError: NetworkError when attempting to fetch resource.

F.safeDeploymentsVersions[m] is undefined
@dasanra
Copy link
Collaborator

dasanra commented Jan 30, 2024

Hey this issue should reported on https://github.com/safe-global/safe-wallet-web

Anyway, could you specify more details about:

  • Web environment (app.safe.global?)
  • Chain used for the deployment

Thank you.

@dasanra
Copy link
Collaborator

dasanra commented Feb 5, 2024

It seems could be related to v1.4.1 smart contract support in the web interface. Should be fixed soon.

5afe/safe-support#376

@dasanra dasanra closed this as completed Feb 5, 2024
@felodelavallet
Copy link

I have the same error:
The Safe SDK could not be initialized. Please be aware that we only support v1.0.0 Safe Accounts and up.

How did you solution??

@manuelfdpereira
Copy link

yeah got the same error on a polygon safe
The Safe SDK could not be initialized. Please be aware that we only support v1.0.0 Safe Accounts and Up.
Can't even add new signers to the vault or do anything with it.

@mattstam
Copy link
Author

mattstam commented Jun 6, 2024

@felodelavallet @manuelfdpereira what Safe version are you on?

@dasanra since it seems this bug is still around we should re-open the issue.

@dasanra
Copy link
Collaborator

dasanra commented Jun 10, 2024

This error is thrown by the web interface usually when it has troubles reading information from the RPC endpoint. It's not related to any bug in the Core SDK. Reloading the web app usually fixes this. The web team will change this error to be more explicit.

@ertemann
Copy link

I am still having this error and issue on a valid SAFE on bArtio berachain testnet.

Brave browser, wallet balances load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants