Skip to content

Commit af9aafc

Browse files
committed
update doc
1 parent a1d7488 commit af9aafc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,17 +2037,15 @@ mod dispatches {
20372037
/// ```
20382038
///
20392039
/// # Arguments
2040-
/// * `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`.
2040+
/// * `origin` - The origin of the transaction, which must be signed by the `hotkey`.
20412041
/// * `netuid` - The netuid that the `hotkey` belongs to.
2042-
/// * `hotkey` - The hotkey associated with the `origin`.
20432042
/// * `evm_key` - The EVM key to associate with the `hotkey`.
20442043
/// * `block_number` - The block number used in the `signature`.
20452044
/// * `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`.
20462045
///
20472046
/// # Errors
20482047
/// Returns an error if:
20492048
/// * The transaction is not signed.
2050-
/// * The hotkey is not owned by the origin coldkey.
20512049
/// * The hotkey does not belong to the subnet identified by the netuid.
20522050
/// * The EVM key cannot be recovered from the signature.
20532051
/// * The EVM key recovered from the signature does not match the given EVM key.

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ parameter_types! {
11871187
pub const HotkeySwapOnSubnetInterval : BlockNumber = 5 * 24 * 60 * 60 / 12; // 5 days
11881188
pub const LeaseDividendsDistributionInterval: BlockNumber = 100; // 100 blocks
11891189
pub const MaxImmuneUidsPercentage: Percent = Percent::from_percent(80);
1190-
pub const EvmKeyAssociateRateLimit: u64 = EVM_KEY_ASSOCIATE_RATELIMIT; // 100 blocks
1190+
pub const EvmKeyAssociateRateLimit: u64 = EVM_KEY_ASSOCIATE_RATELIMIT;
11911191
}
11921192

11931193
impl pallet_subtensor::Config for Runtime {

0 commit comments

Comments
 (0)