@@ -206,22 +206,22 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
206
206
symbol = "α" ,
207
207
identity = None ,
208
208
network_registered_at = 0 ,
209
- owner_hotkey = NULL_KEY ,
210
- owner_coldkey = NULL_KEY ,
209
+ owner_hotkey = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM" ,
210
+ owner_coldkey = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM" ,
211
211
block = 1 ,
212
212
tempo = 100 ,
213
213
last_step = 0 ,
214
214
blocks_since_last_step = 1 ,
215
215
subnet_emission = Balance (0 ),
216
- alpha_in = Balance .from_tao (10 ),
217
- alpha_out = Balance .from_tao (1 ),
216
+ alpha_in = Balance .from_tao (10 ). set_unit ( netuid = alice_subnet_netuid ) ,
217
+ alpha_out = Balance .from_tao (1 ). set_unit ( netuid = alice_subnet_netuid ) ,
218
218
tao_in = Balance .from_tao (10 ),
219
- alpha_out_emission = Balance (0 ),
220
- alpha_in_emission = Balance (0 ),
219
+ alpha_out_emission = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
220
+ alpha_in_emission = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
221
221
tao_in_emission = Balance (0 ),
222
- pending_alpha_emission = Balance (0 ),
222
+ pending_alpha_emission = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
223
223
pending_root_emission = Balance (0 ),
224
- subnet_volume = Balance (0 ),
224
+ subnet_volume = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
225
225
moving_price = Balance (0 ),
226
226
rho = 10 ,
227
227
kappa = 32767 ,
@@ -272,16 +272,16 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
272
272
validator_permit = (False ,),
273
273
pruning_score = [0.0 ],
274
274
last_update = (0 ,),
275
- emission = [Balance (0 )],
275
+ emission = [Balance (0 ). set_unit ( alice_subnet_netuid ) ],
276
276
dividends = [0.0 ],
277
277
incentives = [0.0 ],
278
278
consensus = [0.0 ],
279
279
trust = [0.0 ],
280
280
rank = [0.0 ],
281
281
block_at_registration = (0 ,),
282
- alpha_stake = [Balance .from_tao (1.0 )],
282
+ alpha_stake = [Balance .from_tao (1.0 ). set_unit ( alice_subnet_netuid ) ],
283
283
tao_stake = [Balance (0 )],
284
- total_stake = [Balance .from_tao (1.0 )],
284
+ total_stake = [Balance .from_tao (1.0 ). set_unit ( alice_subnet_netuid ) ],
285
285
tao_dividends_per_hotkey = [
286
286
("5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM" , Balance (0 ))
287
287
],
@@ -299,18 +299,18 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
299
299
symbol = "Τ" ,
300
300
identity = None ,
301
301
network_registered_at = 0 ,
302
- owner_hotkey = NULL_KEY ,
303
- owner_coldkey = NULL_KEY ,
302
+ owner_hotkey = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM" ,
303
+ owner_coldkey = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM" ,
304
304
block = 1 ,
305
305
tempo = 100 ,
306
306
last_step = 0 ,
307
307
blocks_since_last_step = 1 ,
308
308
subnet_emission = Balance (0 ),
309
- alpha_in = Balance (0 ),
310
- alpha_out = Balance (0 ),
309
+ alpha_in = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
310
+ alpha_out = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
311
311
tao_in = Balance (0 ),
312
- alpha_out_emission = Balance (0 ),
313
- alpha_in_emission = Balance (0 ),
312
+ alpha_out_emission = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
313
+ alpha_in_emission = Balance (0 ). set_unit ( netuid = alice_subnet_netuid ) ,
314
314
tao_in_emission = Balance (0 ),
315
315
pending_alpha_emission = Balance (0 ),
316
316
pending_root_emission = Balance (0 ),
@@ -420,8 +420,8 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
420
420
netuid = alice_subnet_netuid , block = block
421
421
)
422
422
423
- assert metagraph_info .owner_coldkey == ( tuple ( alice_wallet .hotkey .public_key ),)
424
- assert metagraph_info .owner_hotkey == ( tuple ( alice_wallet .coldkey .public_key ),)
423
+ assert metagraph_info .owner_coldkey == alice_wallet .hotkey .ss58_address
424
+ assert metagraph_info .owner_hotkey == alice_wallet .coldkey .ss58_address
425
425
426
426
metagraph_infos = subtensor .get_all_metagraphs_info (block )
427
427
0 commit comments