Skip to content
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

Easier access to the agent's addresses #716

Open
Adamantios opened this issue Feb 14, 2024 · 0 comments
Open

Easier access to the agent's addresses #716

Adamantios opened this issue Feb 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Adamantios
Copy link
Collaborator

In the current implementation, a dev needs to use the string values of the ledgers in order to access a non-default address of the agent. This is error-prone and needs code investigation to figure it out.

A potential solution would be to:

  1. Make the identifiers public in aea/configurations/constants.py.
  2. Optionally implement properties in the SkillContext, such as:
@property
def sol_agent_address(self) -> str:
    """Get the agent's Solana address."""
    return self.agent_addresses[SOLANA_IDENTIFIER]
@Adamantios Adamantios added the enhancement New feature or request label Feb 14, 2024
@Adamantios Adamantios changed the title Easier access to the agent addresses Easier access to the agent's addresses Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant