@@ -1218,23 +1218,22 @@ pub mod pallet {
12181218 Self :: do_set_weights ( origin, netuid, dests, weights, version_key)
12191219 }
12201220
1221- // ---- Used to commit a hash of your wieght values to later be revealed.
1222- //
1223- // # Args:
1224- // * 'origin': (<T as frame_system::Config>RuntimeOrigin):
1225- // - The signature of the committing hotkey.
1226- //
1227- // * 'netuid' (u16):
1228- // - The u16 network identifier.
1229- //
1230- // * 'commit_hash' (H256):
1231- // - The hash representing the committed weights.
1232- //
1233- // # Raises:
1234- // * 'CommitNotAllowed':
1235- // - Attempting to commit when it is not allowed.
1236- //
1237- //
1221+ /// ---- Used to commit a hash of your weight values to later be revealed.
1222+ ///
1223+ /// # Args:
1224+ /// * `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):
1225+ /// - The signature of the committing hotkey.
1226+ ///
1227+ /// * `netuid` (`u16`):
1228+ /// - The u16 network identifier.
1229+ ///
1230+ /// * `commit_hash` (`H256`):
1231+ /// - The hash representing the committed weights.
1232+ ///
1233+ /// # Raises:
1234+ /// * `CommitNotAllowed`:
1235+ /// - Attempting to commit when it is not allowed.
1236+ ///
12381237 #[ pallet:: call_index( 96 ) ]
12391238 #[ pallet:: weight( ( Weight :: from_parts( 10_151_000_000 , 0 )
12401239 . saturating_add( T :: DbWeight :: get( ) . reads( 4104 ) )
@@ -1247,34 +1246,34 @@ pub mod pallet {
12471246 Self :: do_commit_weights ( origin, netuid, commit_hash)
12481247 }
12491248
1250- // ---- Used to reveal the weights for a previously commited hash.
1251- //
1252- // # Args:
1253- // * ' origin' : (<T as frame_system::Config>RuntimeOrigin):
1254- // - The signature of the revealing hotkey.
1255- //
1256- // * ' netuid' ( u16):
1257- // - The u16 network identifier.
1258- //
1259- // * ' uids' ( Vec<u16>):
1260- // - The uids for the weights being revealed.
1261- //
1262- // * ' values' ( Vec<u16>):
1263- // - The values of the weights being revealed.
1264- //
1265- // * ' version_key' ( u64):
1266- // - The network version key.
1267- //
1268- // # Raises:
1269- // * ' NoCommitFound' :
1270- // - Attempting to reveal weights without an existing commit.
1271- //
1272- // * ' InvalidRevealTempo' :
1273- // - Attempting to reveal weights outside the valid tempo.
1274- //
1275- // * ' InvalidReveal' :
1276- // - The revealed hash does not match the committed hash.
1277- //
1249+ /// ---- Used to reveal the weights for a previously committed hash.
1250+ ///
1251+ /// # Args:
1252+ /// * ` origin` : (` <T as frame_system::Config>:: RuntimeOrigin` ):
1253+ /// - The signature of the revealing hotkey.
1254+ ///
1255+ /// * ` netuid` (` u16` ):
1256+ /// - The u16 network identifier.
1257+ ///
1258+ /// * ` uids` (` Vec<u16>` ):
1259+ /// - The uids for the weights being revealed.
1260+ ///
1261+ /// * ` values` (` Vec<u16>` ):
1262+ /// - The values of the weights being revealed.
1263+ ///
1264+ /// * ` version_key` (` u64` ):
1265+ /// - The network version key.
1266+ ///
1267+ /// # Raises:
1268+ /// * ` NoCommitFound` :
1269+ /// - Attempting to reveal weights without an existing commit.
1270+ ///
1271+ /// * ` InvalidRevealTempo` :
1272+ /// - Attempting to reveal weights outside the valid tempo.
1273+ ///
1274+ /// * ` InvalidReveal` :
1275+ /// - The revealed hash does not match the committed hash.
1276+ ///
12781277 #[ pallet:: call_index( 97 ) ]
12791278 #[ pallet:: weight( ( Weight :: from_parts( 10_151_000_000 , 0 )
12801279 . saturating_add( T :: DbWeight :: get( ) . reads( 4104 ) )
0 commit comments