fixed getter
This commit is contained in:
3
index.js
3
index.js
@@ -144,8 +144,7 @@ app.get("/getMyTickets", async(request,response)=>{
|
||||
|
||||
try{
|
||||
const tx = await contract.getUserTickets(address);
|
||||
const receipt = await tx.wait();
|
||||
response.json({ transactionHash: receipt.transactionHash });
|
||||
response.json({ tournament_ids: tx.toString() });
|
||||
}catch(err){
|
||||
console.error("Error reading tickets for user tourney:", err);
|
||||
response.status(500).json({ error: err.message });
|
||||
|
||||
Reference in New Issue
Block a user