Skip to content

fix: unbound on_chain_state #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def _deploy_service_onchain( # pylint: disable=too-many-statements,too-many-loc
os.environ["CUSTOM_CHAIN_RPC"] = ledger_config.rpc

current_agent_id = None
on_chain_state = OnChainState.NON_EXISTENT
if chain_data.token > -1:
self.logger.info("Syncing service state")
info = ocm.info(token_id=chain_data.token)
Expand Down Expand Up @@ -537,6 +538,7 @@ def _deploy_service_onchain_from_safe( # pylint: disable=too-many-statements,to
os.environ["CUSTOM_CHAIN_RPC"] = ledger_config.rpc

current_agent_id = None
on_chain_state = OnChainState.NON_EXISTENT
if chain_data.token > -1:
self.logger.info("Syncing service state")
info = sftxb.info(token_id=chain_data.token)
Expand Down