Skip to content

Commit 91b5551

Browse files
committed
try add stake
1 parent b56d360 commit 91b5551

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

evm-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {
3-
"test": "mocha --timeout 999999 --file src/setup.ts --require ts-node/register test/alpha*test.ts"
3+
"test": "mocha --timeout 999999 --file src/setup.ts --require ts-node/register test/wasm*test.ts"
44
},
55
"keywords": [],
66
"author": "",

evm-tests/test/wasm.contract.test.ts

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ describe("Test wasm contract", () => {
7777

7878
it("Can query stake info from contract", async () => {
7979
let netuid = (await api.query.SubtensorModule.TotalNetworks.getValue()) - 1
80-
const signer = getSignerFromKeypair(coldkey);
81-
const inkClient = getInkClient(contracts.bittensor)
82-
const query = inkClient.message("dummy")
83-
const data = query.encode() // No parameters needed
80+
// const signer = getSignerFromKeypair(coldkey);
81+
// const inkClient = getInkClient(contracts.bittensor)
82+
// const query = inkClient.message("dummy")
83+
// const data = query.encode()
84+
// No parameters needed
8485
// const queryTx = await api.tx.Contracts.call({
8586
// dest: MultiAddress.Id(contractAddress),
8687
// data: Binary.fromBytes(data.asBytes()),
@@ -92,18 +93,18 @@ describe("Test wasm contract", () => {
9293
// storage_deposit_limit: BigInt(10000000),
9394
// }).signAndSubmit(signer)
9495

95-
const response = await api.apis.ContractsApi.call(
96-
convertPublicKeyToSs58(coldkey.publicKey),
97-
contractAddress,
98-
BigInt(0),
99-
{
100-
ref_time: BigInt(1000000000),
101-
proof_size: BigInt(10000000),
102-
},
103-
BigInt(1000000000),
104-
Binary.fromBytes(data.asBytes()),
105-
undefined,
106-
)
96+
// const response = await api.apis.ContractsApi.call(
97+
// convertPublicKeyToSs58(coldkey.publicKey),
98+
// contractAddress,
99+
// BigInt(0),
100+
// {
101+
// ref_time: BigInt(1000000000),
102+
// proof_size: BigInt(10000000),
103+
// },
104+
// BigInt(1000000000),
105+
// Binary.fromBytes(data.asBytes()),
106+
// undefined,
107+
// )
107108

108109
// console.log("===== response", response.result.asBytes().toString())
109110

0 commit comments

Comments
 (0)