Files
aitbc/dev/scripts/patches/patch_cli_node_client2.py
oib 15427c96c0 chore: update file permissions to executable across repository
- 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
2026-03-06 22:17:54 +01:00

13 lines
501 B
Python
Executable File

with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/core/node_client.py", "r") as f:
lines = f.readlines()
# Indentation of async def get_chain_info
# Let's just fix it completely manually.
for i, line in enumerate(lines):
if line.startswith(" async def get_chain_info"):
lines[i] = " async def get_chain_info(self, chain_id: str) -> Optional[ChainInfo]:\n"
break
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/core/node_client.py", "w") as f:
f.writelines(lines)