diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e8ebf..8226737 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog +## 1.5.4 /2025-09-23 +* Raw Websocket Logger Inconsistency Fix by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/188 + +**Full Changelog**: https://github.com/opentensor/async-substrate-interface/compare/v1.5.3...v1.5.4 + ## 1.5.3 /2025-09-16 * edge case query map keys by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/186 diff --git a/async_substrate_interface/sync_substrate.py b/async_substrate_interface/sync_substrate.py index 504f77d..e4c6c1c 100644 --- a/async_substrate_interface/sync_substrate.py +++ b/async_substrate_interface/sync_substrate.py @@ -1899,10 +1899,10 @@ def _make_rpc_request( ws = self.connect(init=False if attempt == 1 else True) for payload in payloads: item_id = get_next_id() - to_send = {**payload["payload"], **{"id": item_id}} + to_send = json.dumps({**payload["payload"], **{"id": item_id}}) if self.log_raw_websockets: raw_websocket_logger.debug(f"WEBSOCKET_SEND> {to_send}") - ws.send(json.dumps(to_send)) + ws.send(to_send) request_manager.add_request(item_id, payload["id"]) logger.debug( f"Submitted payload ID {payload['id']} with websocket ID {item_id}: {payload}" diff --git a/pyproject.toml b/pyproject.toml index 1d41c93..def7db8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "async-substrate-interface" -version = "1.5.3" +version = "1.5.4" description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface" readme = "README.md" license = { file = "LICENSE" }