mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-07-27 16:57:44 +00:00
Compare commits
2 Commits
7205bf20d5
...
dfea6e8fae
| Author | SHA1 | Date | |
|---|---|---|---|
| dfea6e8fae | |||
| 56648c5286 |
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user