Skip to content

Commit 999dcdd

Browse files
committed
fix(automations): update generation scripts
1 parent 9f2764c commit 999dcdd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

automations/feed_table_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def read_json(path: Path) -> list[dict[str, Any]]:
122122
def write_json(path: Path, data: list[dict[str, Any]]) -> None:
123123
"""Write data as pretty JSON to a file."""
124124
try:
125-
path.write_text(json.dumps(data, indent=2))
125+
path.write_text(json.dumps(data, indent=2) + "\n")
126126
logger.debug(
127127
"Wrote %d items to %s", len(data) if hasattr(data, "__len__") else 1, path
128128
)

automations/solidity_reference_table_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def main() -> None:
111111
"""Run the automation: fetch and save the solidity registry reference."""
112112
try:
113113
ref = build_solidity_reference(REGISTRY_ADDRESS, REGISTRY_ABI)
114-
OUTPUT_PATH.write_text(json.dumps(ref, indent=2))
114+
OUTPUT_PATH.write_text(json.dumps(ref, indent=2) + "\n")
115115
logger.info("Data successfully saved to %s", OUTPUT_PATH)
116116
except Exception:
117117
logger.exception("Solidity reference automation failed")

src/features/DataTables/FtsoFeeds/ftso_feeds.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,4 @@
503503
"risk": 2,
504504
"feed_index": 62
505505
}
506-
]
506+
]

src/features/DataTables/SolidityReference/solidity_reference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,4 +939,4 @@
939939
"address": "0x08e0CBdc9173e537208CEAd8c38f263517f54F22"
940940
}
941941
]
942-
}
942+
}

0 commit comments

Comments
 (0)