Skip to content

Commit 92f54f3

Browse files
committed
Reverted _determine_network change.
1 parent dbca387 commit 92f54f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bittensor_cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,15 +1077,15 @@ def initialize_chain(
10771077
f"[{COLORS.G.ARG}]{', '.join(not_selected_networks)}[/{COLORS.G.ARG}]"
10781078
)
10791079

1080-
self.subtensor = network_
1080+
self.subtensor = SubtensorInterface(network_)
10811081
elif self.config["network"]:
10821082
console.print(
10831083
f"Using the specified network [{COLORS.G.LINKS}]{self.config['network']}"
10841084
f"[/{COLORS.G.LINKS}] from config"
10851085
)
1086-
self.subtensor = self.config["network"]
1086+
self.subtensor = SubtensorInterface(self.config["network"])
10871087
else:
1088-
self.subtensor = defaults.subtensor.network
1088+
self.subtensor = SubtensorInterface(defaults.subtensor.network)
10891089
return self.subtensor
10901090

10911091
def _run_command(self, cmd: Coroutine, exit_early: bool = True):

0 commit comments

Comments
 (0)