Skip to content

Commit 3e478e8

Browse files
authored
Merge pull request #2151 from opentensor/fix-set-kappa-test
disable set kappa test
2 parents 1426ed1 + 045ae84 commit 3e478e8

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

evm-tests/test/subnet.precompile.hyperparameter.test.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -263,26 +263,27 @@ describe("Test the Subnet precompile contract", () => {
263263
assert.equal(valueFromContract, onchainValue);
264264
})
265265

266-
it("Can set kappa parameter", async () => {
266+
// disable the set kappa parameter test, because it is only callable by sudo now
267+
// it("Can set kappa parameter", async () => {
267268

268-
const totalNetwork = await api.query.SubtensorModule.TotalNetworks.getValue()
269-
const contract = new ethers.Contract(ISUBNET_ADDRESS, ISubnetABI, wallet);
270-
const netuid = totalNetwork - 1;
269+
// const totalNetwork = await api.query.SubtensorModule.TotalNetworks.getValue()
270+
// const contract = new ethers.Contract(ISUBNET_ADDRESS, ISubnetABI, wallet);
271+
// const netuid = totalNetwork - 1;
271272

272-
const newValue = 109;
273-
const tx = await contract.setKappa(netuid, newValue);
274-
await tx.wait();
273+
// const newValue = 109;
274+
// const tx = await contract.setKappa(netuid, newValue);
275+
// await tx.wait();
275276

276-
let onchainValue = await api.query.SubtensorModule.Kappa.getValue(netuid)
277+
// let onchainValue = await api.query.SubtensorModule.Kappa.getValue(netuid)
277278

278279

279-
let valueFromContract = Number(
280-
await contract.getKappa(netuid)
281-
);
280+
// let valueFromContract = Number(
281+
// await contract.getKappa(netuid)
282+
// );
282283

283-
assert.equal(valueFromContract, newValue)
284-
assert.equal(valueFromContract, onchainValue);
285-
})
284+
// assert.equal(valueFromContract, newValue)
285+
// assert.equal(valueFromContract, onchainValue);
286+
// })
286287

287288
it("Can set rho parameter", async () => {
288289

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 330,
223+
spec_version: 331,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)