Skip to content

Invalid Token Address using get_token() #173

Closed

Description

@hueit-og

Hi

I'm not sure if this is an issue or a user error, but when I attempt to get the token details using get_token() for the following contracts I get an error saying 'Invalid Token Address' -

  1. 0x431ad2ff6a9c365805ebad47ee021148d6f7dbe0
  2. 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2

I've tried with a heap of other tokens without issue, but these two seem to fail. I've also tried using Versions 1,2 & 3, but the same issue on each.

I get the following exception -

Exception occurred while trying to get token 0x431ad2ff6a9C365805eBaD47Ee021148d6f7DBe0: Python int too large to convert to C ssize_t

I can find the contracts on etherscan, so not sure what I'm doing wrong.

Thanks

Activity

  1. ErikBjare commented on Oct 5, 2021

    @ErikBjare
    Member

    I've noticed this with MKR before too.

    It is due to those contracts using the bytes32 type for their symbol, instead of the more common string. This edge case needs to be handled somehow.

    PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions