Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend adjustments #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]}".`);
Expand Down Expand Up @@ -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}".`);
Expand All @@ -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}".`);
Expand All @@ -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}".`);
Expand All @@ -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.`);
Expand All @@ -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}".`);
Expand Down