Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions evm-tests/test/neuron.precompile.reveal-weights.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ describe("Test neuron precompile reveal weights", () => {
const sudoFreezeTx = api.tx.Sudo.sudo({ call: setFreezeWindow.decodedCall })
await waitForTransactionWithRetry(api, sudoFreezeTx, alice)

// Set OwnerHyperparamRateLimit to 0
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ limit: BigInt(0) })
// Set OwnerHyperparamRateLimit to 0 (disable RL)
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ epochs: 0 })
const sudoOwnerRateTx = api.tx.Sudo.sudo({ call: setOwnerRateLimit.decodedCall })
await waitForTransactionWithRetry(api, sudoOwnerRateTx, alice)
}
Expand Down
4 changes: 2 additions & 2 deletions evm-tests/test/neuron.precompile.set-weights.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ describe("Test neuron precompile contract, set weights function", () => {
const sudoFreezeTx = api.tx.Sudo.sudo({ call: setFreezeWindow.decodedCall })
await waitForTransactionWithRetry(api, sudoFreezeTx, alice)

// Set OwnerHyperparamRateLimit to 0
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ limit: BigInt(0) })
// Set OwnerHyperparamRateLimit to 0 (disable RL)
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ epochs: 0 })
const sudoOwnerRateTx = api.tx.Sudo.sudo({ call: setOwnerRateLimit.decodedCall })
await waitForTransactionWithRetry(api, sudoOwnerRateTx, alice)
}
Expand Down
4 changes: 2 additions & 2 deletions evm-tests/test/staking.precompile.reward.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ describe("Test neuron precompile reward", () => {
const sudoFreezeTx = api.tx.Sudo.sudo({ call: setFreezeWindow.decodedCall })
await waitForTransactionWithRetry(api, sudoFreezeTx, alice)

// Set OwnerHyperparamRateLimit to 0
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ limit: BigInt(0) })
// Set OwnerHyperparamRateLimit to 0 (disable RL)
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ epochs: 0 })
const sudoOwnerRateTx = api.tx.Sudo.sudo({ call: setOwnerRateLimit.decodedCall })
await waitForTransactionWithRetry(api, sudoOwnerRateTx, alice)
}
Expand Down
4 changes: 2 additions & 2 deletions evm-tests/test/subnet.precompile.hyperparameter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe("Test the Subnet precompile contract", () => {
const sudoFreezeTx = api.tx.Sudo.sudo({ call: setFreezeWindow.decodedCall })
await waitForTransactionWithRetry(api, sudoFreezeTx, alice)

// Set OwnerHyperparamRateLimit to 0
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ limit: BigInt(0) })
// Set OwnerHyperparamRateLimit to 0 (disable RL)
const setOwnerRateLimit = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({ epochs: 0 })
const sudoOwnerRateTx = api.tx.Sudo.sudo({ call: setOwnerRateLimit.decodedCall })
await waitForTransactionWithRetry(api, sudoOwnerRateTx, alice)
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/admin-utils/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ mod benchmarks {
#[benchmark]
fn sudo_set_owner_hparam_rate_limit() {
#[extrinsic_call]
_(RawOrigin::Root, 10u64/*limit*/)/*sudo_set_owner_hparam_rate_limit*/;
_(RawOrigin::Root, 2u16/*epochs*/)/*sudo_set_owner_hparam_rate_limit*/;
}

#[benchmark]
Expand Down
Loading
Loading