Skip to content

Commit e8f33f8

Browse files
committed
update extrinsic signature
1 parent 7e7dbd7 commit e8f33f8

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,17 +1052,19 @@ mod dispatches {
10521052
origin_hotkey: T::AccountId,
10531053
destination_hotkey: T::AccountId,
10541054
origin_netuid: u16,
1055-
destination_netuid: u16,
1056-
amount_moved: Option<u64>,
1055+
netuid_amount_vec: Vec<(u16, Option<u64>)>,
10571056
) -> 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(())
10661068
}
10671069
}
10681070
}

0 commit comments

Comments
 (0)