Closed ZYJLiu closed 1 month ago
Please can you provide source code and a link to view your repro of this?
Here is the repo, and here is the wallet adapter setup in the repo.
Got it thanks, this looks like a Solflare bug. It can also be reproduced on https://anza-xyz.github.io/wallet-adapter/example which sends transactions on devnet.
I've reported it to Solflare and they tell me it'll be fixed in their extension in the next release. I'll close this issue because there's nothing we can do in wallet-adapter.
Describe the bug Sending a transaction to Solflare wallet does not work with devnet connection. When a transaction is sent, the connection switches to mainnet which results in an error from Solflare wallet. Both the wallet and frontend connection are set to devnet, and the transaction works as expected when using Phantom wallet.
To Reproduce
@solana/wallet-adapter-solflare
to connect to Solflare walletExpected behavior Successfully send a transaction with devnet connection
Screenshots![CleanShot 2024-05-02 at 15 35 17](https://github.com/anza-xyz/wallet-adapter/assets/75003086/953aa26c-abd6-418c-aab0-2603dc9b7059)
Desktop: