Skip to content

Commit

Permalink
Merge pull request #138 from crestalnetwork/refactor/agnet-rpc-to-env
Browse files Browse the repository at this point in the history
Refactor: move rpc config to env
  • Loading branch information
hyacinthus authored Jan 31, 2025
2 parents 0e2fbde + 05cc985 commit 2780641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def __init__(self):
self.sentry_profiles_sample_rate = float(
self.load("SENTRY_PROFILES_SAMPLE_RATE", "0.01")
)
self.rpc_base_mainnet = self.load(
"RPC_BASE_MAINNET", "https://mainnet.base.org"
)
# ===== config loaded
# Now we know the env, set up logging
setup_logging(self.env, self.debug)
Expand Down
2 changes: 1 addition & 1 deletion app/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def initialize_agent(aid):
agent.enso_config.get("api_token"),
agent.enso_config.get("main_tokens", list[str]()),
agentkit.wallet if agentkit else None,
agent.rpc_config,
config.rpc_base_mainnet,
skill_store,
aid,
)
Expand Down

0 comments on commit 2780641

Please sign in to comment.