fixed getter
This commit is contained in:
parent
26c2889c00
commit
52a596596f
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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user