File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
pallets/subtensor/src/macros Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -1052,17 +1052,19 @@ mod dispatches {
1052
1052
origin_hotkey : T :: AccountId ,
1053
1053
destination_hotkey : T :: AccountId ,
1054
1054
origin_netuid : u16 ,
1055
- destination_netuid : u16 ,
1056
- amount_moved : Option < u64 > ,
1055
+ netuid_amount_vec : Vec < ( u16 , Option < u64 > ) > ,
1057
1056
) -> DispatchResult {
1058
- Self :: do_move_stake (
1059
- origin,
1060
- origin_hotkey,
1061
- destination_hotkey,
1062
- origin_netuid,
1063
- destination_netuid,
1064
- amount_moved,
1065
- )
1057
+ for ( destination_netuid, amount_moved) in netuid_amount_vec. iter ( ) {
1058
+ Self :: do_move_stake (
1059
+ origin. clone ( ) ,
1060
+ origin_hotkey. clone ( ) ,
1061
+ destination_hotkey. clone ( ) ,
1062
+ origin_netuid,
1063
+ * destination_netuid,
1064
+ * amount_moved,
1065
+ ) ?;
1066
+ }
1067
+ Ok ( ( ) )
1066
1068
}
1067
1069
}
1068
1070
}
You can’t perform that action at this time.
0 commit comments