@@ -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