File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 58
58
publish_metadata ,
59
59
get_metadata ,
60
60
)
61
- from bittensor .core .extrinsics .asyncex .start_call import start_call_extrinsic
62
61
from bittensor .core .extrinsics .asyncex .serving import serve_axon_extrinsic
63
62
from bittensor .core .extrinsics .asyncex .staking import (
64
63
add_stake_extrinsic ,
65
64
add_stake_multiple_extrinsic ,
66
65
)
66
+ from bittensor .core .extrinsics .asyncex .start_call import start_call_extrinsic
67
67
from bittensor .core .extrinsics .asyncex .take import (
68
68
decrease_take_extrinsic ,
69
69
increase_take_extrinsic ,
@@ -135,7 +135,6 @@ def __init__(
135
135
self .chain_endpoint , self .network = AsyncSubtensor .setup_config (
136
136
network , self ._config
137
137
)
138
- self ._mock = _mock
139
138
140
139
self .log_verbose = log_verbose
141
140
self ._check_and_log_network_settings ()
@@ -229,7 +228,7 @@ async def encode_params(
229
228
call_definition : dict [str , list ["ParamWithTypes" ]],
230
229
params : Union [list [Any ], dict [str , Any ]],
231
230
) -> str :
232
- """Returns a hex encoded string of the params using their types."""
231
+ """Returns a hex- encoded string of the params using their types."""
233
232
param_data = scalecodec .ScaleBytes (b"" )
234
233
235
234
for i , param in enumerate (call_definition ["params" ]):
Original file line number Diff line number Diff line change 61
61
get_metadata ,
62
62
serve_axon_extrinsic ,
63
63
)
64
- from bittensor .core .extrinsics .start_call import start_call_extrinsic
65
64
from bittensor .core .extrinsics .set_weights import set_weights_extrinsic
66
65
from bittensor .core .extrinsics .staking import (
67
66
add_stake_extrinsic ,
68
67
add_stake_multiple_extrinsic ,
69
68
)
69
+ from bittensor .core .extrinsics .start_call import start_call_extrinsic
70
70
from bittensor .core .extrinsics .take import (
71
71
decrease_take_extrinsic ,
72
72
increase_take_extrinsic ,
110
110
111
111
112
112
class Subtensor (SubtensorMixin ):
113
- """Thin layer for interacting with Substrate Interface. Mostly a collection of frequently- used calls."""
113
+ """Thin layer for interacting with Substrate Interface. Mostly a collection of frequently used calls."""
114
114
115
115
def __init__ (
116
116
self ,
@@ -135,7 +135,6 @@ def __init__(
135
135
config = self .config ()
136
136
self ._config = copy .deepcopy (config )
137
137
self .chain_endpoint , self .network = self .setup_config (network , self ._config )
138
- self ._mock = _mock
139
138
140
139
self .log_verbose = log_verbose
141
140
self ._check_and_log_network_settings ()
You can’t perform that action at this time.
0 commit comments