mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 13:13:25 +00:00
Merge pull request #40 from Ayush272002/form__submit_handler
add location and end date
This commit is contained in:
@@ -53,6 +53,11 @@
|
||||
"name": "_description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "_location",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_capacity",
|
||||
@@ -65,7 +70,12 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_eventDate",
|
||||
"name": "_eventStartDate",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_eventEndDate",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -108,7 +118,7 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "eventDate",
|
||||
"name": "eventStartDate",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -284,6 +294,11 @@
|
||||
"name": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "location",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "capacity",
|
||||
@@ -301,7 +316,12 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "eventDate",
|
||||
"name": "eventStartDate",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "eventEndDate",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -58,9 +58,11 @@ export const createEvent = async ({
|
||||
const tx = await contract.createEvent(
|
||||
name,
|
||||
description,
|
||||
location,
|
||||
capacity,
|
||||
ethers.utils.parseEther(ticketPrice.toString()),
|
||||
Math.floor(startDate.getTime() / 1000),
|
||||
Math.floor(endDate.getTime() / 1000),
|
||||
images
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user