File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1561,9 +1561,20 @@ mod pallet_benchmarks {
15611561 fn set_coldkey_auto_stake_hotkey ( ) {
15621562 let coldkey: T :: AccountId = whitelisted_caller ( ) ;
15631563 let netuid = NetUid :: from ( 1 ) ;
1564- let hot: T :: AccountId = account ( "A" , 0 , 1 ) ;
1564+ let hotkey: T :: AccountId = account ( "A" , 0 , 1 ) ;
1565+ SubtokenEnabled :: < T > :: insert ( netuid, true ) ;
1566+ Subtensor :: < T > :: init_new_network ( netuid, 1 ) ;
1567+ let amount = 900_000_000_000 ;
1568+
1569+ Subtensor :: < T > :: add_balance_to_coldkey_account ( & coldkey. clone ( ) , amount) ;
1570+
1571+ assert_ok ! ( Subtensor :: <T >:: burned_register(
1572+ RawOrigin :: Signed ( coldkey. clone( ) ) . into( ) ,
1573+ netuid,
1574+ hotkey. clone( )
1575+ ) ) ;
15651576
15661577 #[ extrinsic_call]
1567- _ ( RawOrigin :: Signed ( coldkey. clone ( ) ) , netuid, hot . clone ( ) ) ;
1578+ _ ( RawOrigin :: Signed ( coldkey. clone ( ) ) , netuid, hotkey . clone ( ) ) ;
15681579 }
15691580}
You can’t perform that action at this time.
0 commit comments