Open Steven-Yung opened 3 months ago
Describe the bug A clear and concise description of what the bug is.
SDK Version
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
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):
Additional context Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
SDK Version
Code
When i run my app,it terminate with error msg:
Note: the web3model demo has the same error
ExampleApp.swift
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):
Additional context Add any other context about the problem here.