Skip to content

Commit 73a11fe

Browse files
committed
Ensure ss58 format, if not set at init, is set for the runtime config as well as the Runtime.
1 parent d0889db commit 73a11fe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ async def initialize(self):
823823
if ss58_prefix_constant:
824824
self.ss58_format = ss58_prefix_constant.value
825825
runtime.ss58_format = ss58_prefix_constant.value
826+
runtime.runtime_config.ss58_format = ss58_prefix_constant.value
826827
self.initialized = True
827828
self._initializing = False
828829

async_substrate_interface/sync_substrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ def initialize(self):
568568
if ss58_prefix_constant:
569569
self.ss58_format = ss58_prefix_constant.value
570570
self.runtime.ss58_format = ss58_prefix_constant.value
571+
self.runtime.runtime_config.ss58_format = ss58_prefix_constant.value
571572
self.initialized = True
572573

573574
def __exit__(self, exc_type, exc_val, exc_tb):

0 commit comments

Comments
 (0)