Skip to content

Commit 1baab0f

Browse files
committed
Add chain_endpoint and url prior to super init.
1 parent d3f6473 commit 1baab0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

async_substrate_interface/substrate_addons.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ def __init__(
129129
self._mock = _mock
130130
self.retry_timeout = retry_timeout
131131
self.max_retries = max_retries
132+
self.chain_endpoint = url
133+
self.url = url
132134
initialized = False
133135
for chain_url in [url] + fallback_chains:
134136
try:
137+
self.chain_endpoint = chain_url
138+
self.url = chain_url
135139
super().__init__(
136140
url=chain_url,
137141
ss58_format=ss58_format,

0 commit comments

Comments
 (0)