Created
November 1, 2022 09:18
-
-
Save ac12644/82208de59278e662d8fcc790402e2df7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function handleSubmit() { | |
try { | |
const transaction = await contract.methods | |
.createFundraiser(name, image, description, goalAmount, beneficiary) | |
.send({ from: accounts[0] }); | |
console.log(transaction.transactionHash); | |
} catch (error) { | |
alert(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment