add location and end date

This commit is contained in:
Ayush Acharjya
2024-10-27 03:23:44 +00:00
parent 0641d2e0a8
commit d56bc64f45
2 changed files with 25 additions and 3 deletions

View File

@@ -53,6 +53,11 @@
"name": "_description", "name": "_description",
"type": "string" "type": "string"
}, },
{
"internalType": "string",
"name": "_location",
"type": "string"
},
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "_capacity", "name": "_capacity",
@@ -65,7 +70,12 @@
}, },
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "_eventDate", "name": "_eventStartDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_eventEndDate",
"type": "uint256" "type": "uint256"
}, },
{ {
@@ -108,7 +118,7 @@
{ {
"indexed": false, "indexed": false,
"internalType": "uint256", "internalType": "uint256",
"name": "eventDate", "name": "eventStartDate",
"type": "uint256" "type": "uint256"
} }
], ],
@@ -284,6 +294,11 @@
"name": "description", "name": "description",
"type": "string" "type": "string"
}, },
{
"internalType": "string",
"name": "location",
"type": "string"
},
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "capacity", "name": "capacity",
@@ -301,7 +316,12 @@
}, },
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "eventDate", "name": "eventStartDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "eventEndDate",
"type": "uint256" "type": "uint256"
}, },
{ {

View File

@@ -58,9 +58,11 @@ export const createEvent = async ({
const tx = await contract.createEvent( const tx = await contract.createEvent(
name, name,
description, description,
location,
capacity, capacity,
ethers.utils.parseEther(ticketPrice.toString()), ethers.utils.parseEther(ticketPrice.toString()),
Math.floor(startDate.getTime() / 1000), Math.floor(startDate.getTime() / 1000),
Math.floor(endDate.getTime() / 1000),
images images
); );