WalletConnect / web3modal-swift

Apache License 2.0
56 stars 29 forks source link

[Web3Modal] config recommendedWalletIds & excludedWalletIds , but it doesn't work #72

Open lsh-Alan opened 6 months ago

lsh-Alan commented 6 months ago

` let recommendedWalletIds = ["4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0", //trustwallet "a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393", //phantom ]

    let excludedWalletIds = ["85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041", //Frontier
                             "0b415a746fb9ee99cce155c2ceca0c6f6061b1dbca2d722b3ba16381d0562150", //safepay
    ]

    Web3Modal.configure(projectId: AppConfig.walletConnectProjectId,
                        metadata: metadata,
                        sessionParams: defaultSessionParams, 
                        includeWebWallets: false,
                        recommendedWalletIds: recommendedWalletIds,
                        excludedWalletIds: excludedWalletIds,
                        customWallets: [],
                        coinbaseEnabled: true) { error in
    }

`

other : Whether to exclude all others ,like ExcludedWalletState.all in flutter

DashaBochkar commented 5 months ago

dependencies: [ .package( name: "Web3Modal", url: "https://github.com/WalletConnectV2/web3modal-swift.git", .upToNextMajor(from: "1.0.13") ),

// ], .target( name: "MyTargetName", dependencies: [ // The product(s) you want (most likely Web3Modal). .product(name: "Web3Modal", package: "Web3Modal"), ] ),