File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 ReviewSubmission ,
1111)
1212from app .auth .models import EmailVerification , User # noqa: F401
13+ from app .blockchain .service_impl import BlockchainServiceImpl
1314from app .core .config import settings
1415from app .core .security import get_password_hash
1516from 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
3534async 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 )
You can’t perform that action at this time.
0 commit comments