Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.4.1 /2025-07-09
* Missed passing runtime in encoding by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/149


**Full Changelog**: https://github.com/opentensor/async-substrate-interface/compare/v1.4.0...v1.4.1

## 1.4.0 /2025-07-07
* Removes unused imports by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/139
* Improve CachedFetcher by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/140
Expand Down
10 changes: 6 additions & 4 deletions async_substrate_interface/async_substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ async def _do_runtime_call_old(
param_type_string = f"{param['type']}"
if isinstance(params, list):
param_data += await self.encode_scale(
param_type_string, params[idx]
param_type_string, params[idx], runtime=runtime
)
else:
if param["name"] not in params:
Expand All @@ -2953,7 +2953,7 @@ async def _do_runtime_call_old(
)

param_data += await self.encode_scale(
param_type_string, params[param["name"]]
param_type_string, params[param["name"]], runtime=runtime
)

# RPC request
Expand Down Expand Up @@ -3038,13 +3038,15 @@ async def runtime_call(
for idx, param in enumerate(runtime_call_def["inputs"]):
param_type_string = f"scale_info::{param['ty']}"
if isinstance(params, list):
param_data += await self.encode_scale(param_type_string, params[idx])
param_data += await self.encode_scale(
param_type_string, params[idx], runtime=runtime
)
else:
if param["name"] not in params:
raise ValueError(f"Runtime Call param '{param['name']}' is missing")

param_data += await self.encode_scale(
param_type_string, params[param["name"]]
param_type_string, params[param["name"]], runtime=runtime
)

# RPC request
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "async-substrate-interface"
version = "1.4.0"
version = "1.4.1"
description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
Loading