Skip to content

Commit ef851b4

Browse files
authored
Merge pull request RaoFoundation#2563 from opentensor/remove-out-of-date-e2e
remove an out of date e2e
2 parents 5ab12c0 + be30f17 commit ef851b4

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -348,26 +348,26 @@ describe("Test the Subnet precompile contract", () => {
348348
// assert.equal(valueFromContract, onchainValue);
349349
// })
350350

351-
it("Can set networkPowRegistrationAllowed parameter", async () => {
351+
// it("Can set networkPowRegistrationAllowed parameter", async () => {
352352

353-
const totalNetwork = await api.query.SubtensorModule.TotalNetworks.getValue()
354-
const contract = new ethers.Contract(ISUBNET_ADDRESS, ISubnetABI, wallet);
355-
const netuid = totalNetwork - 1;
353+
// const totalNetwork = await api.query.SubtensorModule.TotalNetworks.getValue()
354+
// const contract = new ethers.Contract(ISUBNET_ADDRESS, ISubnetABI, wallet);
355+
// const netuid = totalNetwork - 1;
356356

357-
const newValue = true;
358-
const tx = await contract.setNetworkPowRegistrationAllowed(netuid, newValue);
359-
await tx.wait();
357+
// const newValue = true;
358+
// const tx = await contract.setNetworkPowRegistrationAllowed(netuid, newValue);
359+
// await tx.wait();
360360

361-
let onchainValue = await api.query.SubtensorModule.NetworkPowRegistrationAllowed.getValue(netuid)
361+
// let onchainValue = await api.query.SubtensorModule.NetworkPowRegistrationAllowed.getValue(netuid)
362362

363363

364-
let valueFromContract = Boolean(
365-
await contract.getNetworkPowRegistrationAllowed(netuid)
366-
);
364+
// let valueFromContract = Boolean(
365+
// await contract.getNetworkPowRegistrationAllowed(netuid)
366+
// );
367367

368-
assert.equal(valueFromContract, newValue)
369-
assert.equal(valueFromContract, onchainValue);
370-
})
368+
// assert.equal(valueFromContract, newValue)
369+
// assert.equal(valueFromContract, onchainValue);
370+
// })
371371

372372
// minBurn hyperparameter. only sudo can set it now
373373
// newValue = 112;

0 commit comments

Comments
 (0)