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

Fatal error when i set coinbaseEnabled to false in Web3Modal configure call #80

Open
Steven-Yung opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Steven-Yung
Copy link

Describe the bug
A clear and concise description of what the bug is.

SDK Version

  • Client: Swift
  • Version 1.1

Code

        let metadata = AppMetadata(
            name: "MyApp",
            description: "Wallet description",
            url: "https://xxx.com",
            icons: ["https://avatars.githubusercontent.com/u/37784886"],
            redirect: .init(native: "xxx://", universal: "xxx://")
        )

        Networking.configure(projectId: projectId, socketFactory: DefaultSocketFactory())

        Web3Modal.configure(
            projectId: projectId,
            metadata: metadata,
            recommendedWalletIds: [
                "a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393",
                "4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0",
                "1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369",
                "c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96"],
            coinbaseEnabled: false
        )

When i run my app,it terminate with error msg:

CoinbaseWalletSDK/CoinbaseWalletSDK.swift:47: Fatal error: Missing configuration: call `CoinbaseWalletSDK.configure` before accessing the `shared` instance.

Note: the web3model demo has the same error
ExampleApp.swift

Web3Modal.configure(
            projectId: projectId,
            metadata: metadata,
            crypto: DefaultCryptoProvider(),
            authRequestParams: nil,
            customWallets: [
                .init(
                    id: "swift-sample",
                    name: "Swift Sample Wallet",
                    homepage: "https://walletconnect.com/",
                    imageUrl: "https://avatars.githubusercontent.com/u/37784886?s=200&v=4",
                    order: 1,
                    mobileLink: "walletapp://",
                    linkMode: "https://lab.web3modal.com/wallet"
                )
            ],
            coinbaseEnabled: false
        ) { error in
            SentrySDK.capture(error: error)
            
            print(error)
        }

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: iPhone15 Pro
  • OS: iOS17.5.1
  • Browser [e.g. stock browser, safari]
  • Version 1.1

Additional context
Add any other context about the problem here.

@Steven-Yung Steven-Yung added the bug Something isn't working label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant