When switching from mainnet to testnet, if a wallet (TON Space) was already connected, minting does not work. The user must manually disconnect and reconnect the wallet, ensuring the testnet is enabled in TON Space before reconnecting.
Steps to Reproduce
- Connect a TON Space wallet while on the mainnet.
- Switch the network to testnet in the Minter UI.
- Attempt to mint a token.
Expected Behavior
Minting should work seamlessly after switching to testnet.
Actual Behavior
Minting does not work unless the user manually:
- Disconnects the wallet.
- Enables testnet mode in TON Space.
- Connect the wallet.
Proposed Solution
- Detect when users switch networks and prompt them to reconnect their wallet if necessary.
- Provide a clear error message or UI guidance instructing users to enable testnet mode in the wallet (TON Space)