Skip to content

Commit 814e4de

Browse files
authored
Merge pull request #151 from opentensor/release/1.4.1
Release/1.4.1
2 parents f739ba4 + 43c3807 commit 814e4de

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.4.1 /2025-07-09
4+
* Missed passing runtime in encoding by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/149
5+
6+
7+
**Full Changelog**: https://github.com/opentensor/async-substrate-interface/compare/v1.4.0...v1.4.1
8+
39
## 1.4.0 /2025-07-07
410
* Removes unused imports by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/139
511
* Improve CachedFetcher by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/140

async_substrate_interface/async_substrate.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,7 @@ async def _do_runtime_call_old(
29442944
param_type_string = f"{param['type']}"
29452945
if isinstance(params, list):
29462946
param_data += await self.encode_scale(
2947-
param_type_string, params[idx]
2947+
param_type_string, params[idx], runtime=runtime
29482948
)
29492949
else:
29502950
if param["name"] not in params:
@@ -2953,7 +2953,7 @@ async def _do_runtime_call_old(
29532953
)
29542954

29552955
param_data += await self.encode_scale(
2956-
param_type_string, params[param["name"]]
2956+
param_type_string, params[param["name"]], runtime=runtime
29572957
)
29582958

29592959
# RPC request
@@ -3038,13 +3038,15 @@ async def runtime_call(
30383038
for idx, param in enumerate(runtime_call_def["inputs"]):
30393039
param_type_string = f"scale_info::{param['ty']}"
30403040
if isinstance(params, list):
3041-
param_data += await self.encode_scale(param_type_string, params[idx])
3041+
param_data += await self.encode_scale(
3042+
param_type_string, params[idx], runtime=runtime
3043+
)
30423044
else:
30433045
if param["name"] not in params:
30443046
raise ValueError(f"Runtime Call param '{param['name']}' is missing")
30453047

30463048
param_data += await self.encode_scale(
3047-
param_type_string, params[param["name"]]
3049+
param_type_string, params[param["name"]], runtime=runtime
30483050
)
30493051

30503052
# RPC request

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "async-substrate-interface"
3-
version = "1.4.0"
3+
version = "1.4.1"
44
description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)