diff --git a/src/handlers/userHandlers/wallet/createHandler.js b/src/handlers/userHandlers/wallet/createHandler.js index 38a325a..6625f6e 100644 --- a/src/handlers/userHandlers/wallet/createHandler.js +++ b/src/handlers/userHandlers/wallet/createHandler.js @@ -4,6 +4,7 @@ import Validators from '../../../utils/validators.js'; import bot from '../../../context/bot.js'; import UserService from '../../../services/userService.js'; import logger from '../../../utils/logger.js'; +import WalletHelpers from './helpers.js'; export default class CreateHandler { static async handleAddWallet(callbackQuery) { @@ -61,9 +62,7 @@ export default class CreateHandler { const walletResult = await WalletService.createWallet(user.id, walletType); if (!walletResult?.address) throw new Error('Failed to generate wallet address'); - const network = WalletService.getNetworkName - ? WalletService.getNetworkName(walletType) - : WalletUtils.getNetworkName(walletType); + const network = WalletHelpers.getNetworkName(walletType); let message = `✅ New wallet generated successfully!\n\n`; message += `Type: ${walletType}\nNetwork: ${network}\n`;