From 56648c528698cc9a540c84bea058b6230d9d3e13 Mon Sep 17 00:00:00 2001 From: gina888666 Date: Mon, 27 Jul 2026 20:30:10 +0800 Subject: [PATCH] fix(holder-analysis): add robinhood to known chains to skip auto-detection When CHAIN is explicitly set to 'robinhood', the auto-detection logic previously treated it as unknown and fell back to probing bsc/eth/base, returning empty data and forcing slow inline workarounds. Adding a KNOWN_CHAINS tuple that includes 'robinhood' (and 'sol') causes the script to skip the probe entirely and query the specified chain directly. Co-Authored-By: Claude Sonnet 4.6 --- skills/gmgn-holder-analysis/analyze.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/gmgn-holder-analysis/analyze.py b/skills/gmgn-holder-analysis/analyze.py index 9068147..a12c0e9 100644 --- a/skills/gmgn-holder-analysis/analyze.py +++ b/skills/gmgn-holder-analysis/analyze.py @@ -8,7 +8,8 @@ CHAIN = sys.argv[2] LANG = sys.argv[3] if len(sys.argv) > 3 else 'zh' # EVM 地址自动探测链(0x... 且 chain 传入 'auto' 或未明确指定时) -if CHAIN == 'auto' or (TOKEN_ADDR.startswith('0x') and CHAIN not in ('bsc','eth','base')): +KNOWN_CHAINS = ('bsc', 'eth', 'base', 'sol', 'robinhood') +if CHAIN == 'auto' or (TOKEN_ADDR.startswith('0x') and CHAIN not in KNOWN_CHAINS): for _c in ('bsc', 'eth', 'base'): _r = subprocess.run(['gmgn-cli', 'token', 'holders', '--chain', _c, '--address', TOKEN_ADDR, '--limit', '5', '--raw'],