Skip to content

Commit 0c75b51

Browse files
authored
Merge pull request #2803 from VolodymyrBg/bg
Fix AxonInfo initialization in get_mock_neuron function
2 parents 887da5b + a26c6c2 commit 0c75b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/helpers/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ def get_mock_neuron(**kwargs) -> NeuronInfo:
105105
"""
106106

107107
mock_neuron_d = dict(
108-
# TODO fix the AxonInfo here — it doesn't work
109108
{
110109
"netuid": -1, # mock netuid
111110
"axon_info": AxonInfo(
112-
block=0,
113111
version=1,
114-
ip=0,
112+
ip="0.0.0.0",
115113
port=0,
116114
ip_type=0,
115+
hotkey=get_mock_hotkey(),
116+
coldkey=get_mock_coldkey(),
117117
protocol=0,
118118
placeholder1=0,
119119
placeholder2=0,

0 commit comments

Comments
 (0)