Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions skills/portfolio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from skills.portfolio.token_balances import TokenBalances
from skills.portfolio.wallet_approvals import WalletApprovals
from skills.portfolio.wallet_defi_positions import WalletDefiPositions
from skills.portfolio.wallet_history import PortfolioWalletHistory
from skills.portfolio.wallet_history import WalletHistory
from skills.portfolio.wallet_net_worth import WalletNetWorth
from skills.portfolio.wallet_nfts import WalletNFTs
from skills.portfolio.wallet_profitability import WalletProfitability
Expand Down Expand Up @@ -43,6 +43,7 @@ class Config(SkillConfig):

states: SkillStates
api_key: str
api_key_provider: str


async def get_skills(
Expand Down Expand Up @@ -86,7 +87,7 @@ def get_portfolio_skill(
"""Get a portfolio skill by name."""
if name == "wallet_history":
if name not in _cache:
_cache[name] = PortfolioWalletHistory(
_cache[name] = WalletHistory(
skill_store=store,
)
return _cache[name]
Expand Down
2 changes: 1 addition & 1 deletion skills/portfolio/wallet_nfts.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def _arun(
logger.debug(f"wallet_nfts.py: Fetching wallet NFTs with context {context}")

# Get the API key from the agent's configuration
api_key = context.config.get("api_key")
api_key = self.get_api_key(context)
if not api_key:
return {"error": "No Moralis API key provided in the configuration."}

Expand Down