diff --git a/app/bot/routers/home.py b/app/bot/routers/home.py index 609545b..29e2125 100644 --- a/app/bot/routers/home.py +++ b/app/bot/routers/home.py @@ -6,6 +6,7 @@ from app.core.models._blockchain.ton.connect import TonConnect, unpack_wallet_in from app.core._config import WEB_APP_URLS from aiogram import types, Router, F from aiogram.filters import Command +from tonsdk.utils import Address main_router = Router() @@ -14,7 +15,7 @@ main_router = Router() async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs): return await tg_process_template( chat_wrap, user.translated('home_menu').format( - wallet_address=wallet_connection.wallet_address, + wallet_address=Address(wallet_connection.wallet_address).to_string(1, 1, 1), name=user.front_format(plain_text=True), ), keyboard=get_inline_keyboard([ [{ diff --git a/requirements.txt b/requirements.txt index e6a6fef..4f8fcf3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ pymysql==1.1.0 aiogram==3.4.1 pytonconnect==0.3.0 base58==2.1.1 +tonsdk==1.0.13