From b1bc3eb39e002e8c426b5877105be18e156c54ca Mon Sep 17 00:00:00 2001 From: Daniel Ogbuti Date: Sun, 17 Oct 2021 22:07:25 +0100 Subject: [PATCH] frontend adjustments --- src/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.js b/src/main.js index e39af90..dde2a85 100644 --- a/src/main.js +++ b/src/main.js @@ -355,7 +355,7 @@ document ]; notification(`⌛ Adding "${params[0]}"...`); try { - const result = await contract.methods + await contract.methods .createProject(...params) .send({ from: kit.defaultAccount }) notification(`🎉 You successfully added "${params[0]}".`); @@ -409,7 +409,7 @@ document.querySelector("#subContainer").addEventListener("click", async (e) => { notification(`⌛ Awaiting payment for "${projects[index].name}"...`); try { - const result = await contract.methods + await contract.methods .fundProject(index, price) .send({ from: kit.defaultAccount }); notification(`🎉 You successfully funded "${projects[index].name}".`); @@ -426,7 +426,7 @@ document.querySelector("#subContainer").addEventListener("click", async (e) => { notification(`⌛ Closing "${projects[index].name}"...`); try { - const result = await contract.methods + await contract.methods .closeFund(index) .send({ from: kit.defaultAccount }) notification(`🎉 You successfully closed "${projects[index].name}".`); @@ -442,7 +442,7 @@ document.querySelector("#subContainer").addEventListener("click", async (e) => { notification(`⌛ Withrawing Funds from "${projects[index].name}"...`); try { - const result = await contract.methods + await contract.methods .withdrawFunds(index) .send({ from: kit.defaultAccount }) notification(`🎉 You successfully withdrew funds from "${projects[index].name}".`); @@ -458,7 +458,7 @@ document.querySelector("#subContainer").addEventListener("click", async (e) => { notification(`⌛ Requesting refund from "${projects[index].name}"...`); try { - const result = await contract.methods + await contract.methods .requestRefund(index) .send({ from: kit.defaultAccount }) notification(`🎉 Your request for a refund from "${projects[index].name}" has been processed.`); @@ -474,7 +474,7 @@ document.querySelector("#subContainer").addEventListener("click", async (e) => { notification(`⌛ Processing refund from "${projects[index].name}"...`); try { - const result = await contract.methods + await contract.methods .getRefund(index) .send({ from: kit.defaultAccount }) notification(`🎉 You were successfully refunded by "${projects[index].name}".`);