anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.44k stars 906 forks source link

Phantom on mainnet mode successfully signAndSend transactions while app is using a testnet #971

Closed phoenixVS closed 3 weeks ago

phoenixVS commented 1 month ago

When Phantom on mainnet mode and app is using test- devnet, you can sign and send transactions with wallet using signAndSendTransactions and it even returns some transaction hash which is not present in solscan

To Reproduce Steps to reproduce the behavior:

  1. Go to https://lab.web3modal.com/library/solana/
  2. Disable testnet mode in phantom and connect
  3. select test | dev net and run Sign and Send transaction (both V0 and legacy ones)
  4. You recieve a signature instead of thowing some error

Expected behavior It should throw some error instead

Screenshots image

Desktop (please complete the following information):

jordaaash commented 3 weeks ago

Please report issues with Phantom to Phantom. Also, using an adapter for Phantom generally won't be necessary, since it supports the Wallet Standard. If a transaction hash isn't found in an explorer, make sure you're using the same cluster in the app, wallet settings, and explorer.