Skip to content

Commit d29a4f2

Browse files
authored
♻️ 불필요한 local import를 상단 import로 변경 (#59)
1 parent 3f5cb86 commit d29a4f2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

app/db/seed.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ReviewSubmission,
1111
)
1212
from app.auth.models import EmailVerification, User # noqa: F401
13+
from app.blockchain.service_impl import BlockchainServiceImpl
1314
from app.core.config import settings
1415
from app.core.security import get_password_hash
1516
from app.db.base import Base
@@ -24,8 +25,6 @@ async def _deploy_or_none() -> str | None:
2425
if not settings.blockchain_rpc_url or not settings.server_private_key:
2526
return None
2627
try:
27-
from app.blockchain.service_impl import BlockchainServiceImpl
28-
2928
return await BlockchainServiceImpl().deploy_contract()
3029
except Exception:
3130
logger.exception("[SEED] contract deploy failed, skipping")
@@ -34,8 +33,6 @@ async def _deploy_or_none() -> str | None:
3433

3534
async def _fund_contract(contract_address: str, amount_wei: int) -> None:
3635
try:
37-
from app.blockchain.service_impl import BlockchainServiceImpl
38-
3936
await BlockchainServiceImpl().fund_contract(contract_address, amount_wei)
4037
except Exception:
4138
logger.exception("[SEED] contract fund failed contract=%s", contract_address)

0 commit comments

Comments
 (0)