File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ fn test_batch_commit_weights() {
290
290
assert_ok ! ( SubtensorModule :: batch_commit_weights(
291
291
RuntimeOrigin :: signed( hotkey) ,
292
292
netuids_vec. clone( ) ,
293
- vec![ hash. clone ( ) , hash. clone ( ) , hash. clone ( ) ] , // One per network
293
+ vec![ hash, hash, hash] , // One per network
294
294
) ) ;
295
295
296
296
// Check the events are emitted, three errors about commit reveal disabled
@@ -340,7 +340,7 @@ fn test_batch_commit_weights() {
340
340
assert_ok ! ( SubtensorModule :: batch_commit_weights(
341
341
RuntimeOrigin :: signed( hotkey) ,
342
342
netuids_vec. clone( ) ,
343
- vec![ hash. clone ( ) , hash. clone ( ) , hash. clone ( ) ]
343
+ vec![ hash, hash, hash]
344
344
) ) ;
345
345
346
346
assert ! ( SubtensorModule :: check_weights_min_stake( & hotkey, netuid_0) ) ;
@@ -370,7 +370,7 @@ fn test_batch_commit_weights() {
370
370
assert_ok ! ( SubtensorModule :: batch_commit_weights(
371
371
RuntimeOrigin :: signed( hotkey) ,
372
372
netuids_vec. clone( ) ,
373
- vec![ hash. clone ( ) , hash. clone ( ) , hash. clone ( ) ]
373
+ vec![ hash, hash, hash]
374
374
) ) ;
375
375
376
376
// Check the events are emitted, one error
You can’t perform that action at this time.
0 commit comments