Skip to content

Instantly share code, notes, and snippets.

@ac12644
Created November 1, 2022 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ac12644/82208de59278e662d8fcc790402e2df7 to your computer and use it in GitHub Desktop.
Save ac12644/82208de59278e662d8fcc790402e2df7 to your computer and use it in GitHub Desktop.
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