- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
16 lines
532 B
Python
Executable File
16 lines
532 B
Python
Executable File
import re
|
|
|
|
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/core/node_client.py", "r") as f:
|
|
content = f.read()
|
|
|
|
# Fix _parse_chain_info to look for 'id' instead of 'chain_id' to match our mock data above
|
|
content = content.replace(
|
|
""" return ChainInfo(
|
|
id=chain_data["chain_id"],""",
|
|
""" return ChainInfo(
|
|
id=chain_data.get("chain_id", chain_data.get("id", "unknown")),"""
|
|
)
|
|
|
|
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/core/node_client.py", "w") as f:
|
|
f.write(content)
|