-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Severity: High
- Prevents users from depositing funds, blocking core functionality.
- Indicates a critical issue with Solana wallet connection state management.
Describe the bug
When a user connects their Solana Phantom wallet to app.aixblock.io, the app falsely reports the wallet as disconnected during deposit operations, even though the wallet is connected. This prevents users from depositing funds.
To Reproduce
Steps to reproduce the behavior:
- Navigate to https://app.aixblock.io/ and connect your Solana Phantom wallet.
- Confirm the wallet is connected (e.g., address displayed in the UI).
- Attempt to deposit funds (e.g., "Deposit" button in the wallet section).
- Observe the error: Error: Wallet is not connected. Please connect your wallet.
Expected behavior
The deposit should proceed successfully if the wallet is connected.
Screenshots

Desktop (please complete the following information):
- OS: Windows 11
- Browser Chrome
- Version v139.0.7258.139
Suggested Fix
Frontend Fix:
Ensure the app listens for Solana wallet connection events (connect, disconnect) and uses the correct API to verify connection:
javascript
const checkSolanaConnection = async () => {
if (!window.solana) return false;
return window.solana.isConnected;
};
// Add event listeners
window.solana.on("connect", () => {
setWalletConnected(true);
});
window.solana.on("disconnect", () => {
setWalletConnected(false);
});
Backend Fix (if applicable):
Validate the Solana wallet address on the server before processing deposits.
Additional context
- This issue may affect user trust and adoption if users cannot deposit funds.
- Consider testing with other Solana wallets (e.g., Phantom) to confirm the issue is Phantom-specific.
Metadata
Metadata
Assignees
Labels
No labels