mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 21:23:24 +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",
|
"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"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user