           
            } catch (error) {
                console.error('Failed to create wallet:', error);
                
                // Create a mock wallet for demo purposes
                currentWallet = {
                    address: 'zhtp1' + Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15),
                    publicKey: 'pk_' + Math.random().toString(36).substring(2, 20),
                    balance: 0,
                    network: 'testnet',
         