Skip to content

Commit 53520c3

Browse files
codebydivineclaude
andcommitted
fix: restore SolanaPrograms enum attribute names
Reverted TOKEN_PROGRAM_ID back to TOKEN and TOKEN_2022_PROGRAM_ID back to TOKEN_2022 to maintain API compatibility while keeping security suppression comments. This fixes 17 failing tests that were using the original attribute names. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6c1d8de commit 53520c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/thegraph_token_api/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class Protocol(StringEnum):
9797
class SolanaPrograms(StringEnum):
9898
"""Solana program IDs."""
9999

100-
TOKEN_2022_PROGRAM_ID = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" # nosec B105 # noqa: S105
101-
TOKEN_PROGRAM_ID = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" # nosec B105 # noqa: S105
100+
TOKEN_2022 = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" # nosec B105 # noqa: S105 # pragma: allowlist secret
101+
TOKEN = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" # nosec B105 # noqa: S105 # pragma: allowlist secret
102102

103103

104104
class SwapPrograms(StringEnum):

0 commit comments

Comments
 (0)