Skip to content

Commit ec2d5ef

Browse files
committed
Missed passing ss58 format
1 parent 38ab21a commit ec2d5ef

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ async def get_runtime_for_version(
11651165
async def _get_runtime_for_version(
11661166
self, runtime_version: int, block_hash: Optional[str] = None
11671167
) -> Runtime:
1168-
runtime_config = RuntimeConfigurationObject()
1168+
runtime_config = RuntimeConfigurationObject(ss58_format=self.ss58_format)
11691169
runtime_config.clear_type_registry()
11701170
runtime_config.update_type_registry(load_type_registry_preset(name="core"))
11711171

tests/integration_tests/test_async_substrate_interface.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,10 @@ async def test_get_events_proper_decoding():
126126
async with AsyncSubstrateInterface(ARCHIVE_ENTRYPOINT) as substrate:
127127
all_events = await substrate.get_events(block_hash=block_hash)
128128
event = all_events[1]
129-
assert (
130-
event["attributes"]
131-
== (
132-
"5G1NjW9YhXLadMWajvTkfcJy6up3yH2q1YzMXDTi6ijanChe", # TODO issue with decoding here
133-
30,
134-
"0xa6b4e5c8241d60ece0c25056b19f7d21ae845269fc771ad46bf3e011865129a5",
135-
)
129+
assert event["attributes"] == (
130+
"5G1NjW9YhXLadMWajvTkfcJy6up3yH2q1YzMXDTi6ijanChe",
131+
30,
132+
"0xa6b4e5c8241d60ece0c25056b19f7d21ae845269fc771ad46bf3e011865129a5",
136133
)
137134

138135

0 commit comments

Comments
 (0)