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

fix: weird repr of token manager [APE-1241] #32

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

antazoey
Copy link
Member

What I did

The TokenManager's repr is just {} which is kinda weird, makes it seem like you don't have any tokenlists installed or something even though that is not the case. Better to just use <ape_tokens.TokenManager> so that is what this PR does.

P.s. trying to figure out how to get USD of tokens

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@vany365 vany365 changed the title fix: weird repr of token manager fix: weird repr of token manager [APE-1241] Jul 28, 2023
@@ -110,11 +110,8 @@ class TokenManager(ManagerAccessMixin, dict):
def _manager(self) -> TokenListManager:
return TokenListManager()

@cached_property
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was no longer used and it is an internal property

@antazoey antazoey merged commit fd8e00e into ApeWorX:main Jul 28, 2023
12 checks passed
@antazoey antazoey deleted the fix/repr branch July 28, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants