Skip to content

fix: token info retrieval in Info and readme#277

Open
vagetablechicken wants to merge 1 commit intohyperliquid-dex:masterfrom
vagetablechicken:dev/info
Open

fix: token info retrieval in Info and readme#277
vagetablechicken wants to merge 1 commit intohyperliquid-dex:masterfrom
vagetablechicken:dev/info

Conversation

@vagetablechicken
Copy link

  • The Issue: The universe tokens were being accessed via list position, but the API's list index and the token's internal index are not always 1:1.

    The Fix: Implemented a token_index_to_token_info lookup table to map metadata by the actual token ID.

  • Homebrew paths for specific versions (like 3.10.16) change whenever the patch version updates. Using brew --prefix ensures the command remains valid even after brew upgrade, preventing broken environment setups.

fix #275

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.

testnet API returns invalid token indices causing IndexError

1 participant