fix misprint

This commit is contained in:
user 2025-08-22 19:36:20 +03:00
parent 79165b49b5
commit cf64ddaaa5
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ from tonsdk.utils import Address
from app.core._blockchain.ton.wallet_v3cr3 import WalletV3CR3
from app.core.logger import make_log
from sqlalchemy import create_engine, text
from typing import Optional
def _load_seed_from_env_or_generate() -> bytes:
@ -44,7 +45,7 @@ def _init_seed_via_db() -> bytes:
if time.time() - start > 120:
raise TimeoutError("service_config table not available")
def read_seed() -> bytes | None:
def read_seed() -> Optional[bytes]:
row = conn.execute(text("SELECT packed_value FROM service_config WHERE key = :k LIMIT 1"), {"k": "private_key"}).first()
if not row:
return None