diff --git a/index.js b/index.js index d70e466..9fab3d0 100644 --- a/index.js +++ b/index.js @@ -157,10 +157,10 @@ app.get("/getTournamentParticipentsCount", async(request,response)=>{ if(!id){response.status(400).json({error:"id is required"})} try{ - const tx = await contract.getTournamentParticipentsCount(address); + const tx = await contract.getTournamentParticipentsCount(id); response.json({ count: tx.toString() }); }catch(err){ console.error("Error reading participents for tourney:", err); response.status(500).json({ error: err.message }); } -}) \ No newline at end of file +})