fix: set TRX/TRXT coin type to TRC-20#1740
Merged
CharlVS merged 2 commits intofeat/add-tron-coinsfrom Mar 18, 2026
Merged
Conversation
TRX and TRXT had an empty "type" field because the protocol type
resolution in get_protocol_info() only handled ETH and QTUM as
platform coin protocols. TRON uses its own protocol type ("TRX")
rather than "ETH", so it fell through all type-assignment paths.
Add "TRX" to the platform protocol check so TRX resolves to "TRC-20"
via the existing protocols dict, matching how ETH resolves to "ERC-20".
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
cipig
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
"type": ""for TRX and TRXT in generatedcoins_config.jsonget_protocol_info()only recognizedETHandQTUMas platform coin protocol types, but TRON uses its own distinct protocol type ("TRX") rather than"ETH"like other EVM chains (BNB, MATIC, AVAX, etc.)"TRX"to the platform protocol type check so it resolves to"TRC-20"via the existingself.protocolsdict, consistent with howETH → "ERC-20"andQTUM → "QRC-20"workChanges
utils/generate_app_configs.py: Add"TRX"to protocol type list at line 282utils/coins_config*.json: Regenerated — TRX and TRXT now have"type": "TRC-20"Context
Related docs PR: GLEECBTC/komodo-docs-mdx#601
Test plan
generate_app_configs.py no-scanlocally — generation completes successfully"type": "TRC-20"(was"")"type": "TRC-20"(was"")"ERC-20", BNB still"BEP-20", etc.)