From b7a0f2031a4761aa025eae1aa94f404e0d36aedc Mon Sep 17 00:00:00 2001 From: Ratnesh Date: Mon, 30 Oct 2023 23:07:09 +0530 Subject: [PATCH] Third6 Deployment --- src/ethereum/web3.js | 2 ++ test/Project.test.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ethereum/web3.js b/src/ethereum/web3.js index 8cfa5a1..465fca6 100644 --- a/src/ethereum/web3.js +++ b/src/ethereum/web3.js @@ -1,8 +1,10 @@ import Web3 from "web3"; let web3; if (window.web3 !== undefined) { + console.log("MetaMask Account present"); web3 = new Web3(window.web3.currentProvider); } else { + console.log("No MetaMask Account present. Please install metamask."); const provider = new Web3.providers.HttpProvider( process.env.REACT_APP_SEPOLIA ); diff --git a/test/Project.test.js b/test/Project.test.js index a5e8790..6c920c8 100644 --- a/test/Project.test.js +++ b/test/Project.test.js @@ -43,7 +43,6 @@ describe("Projects", () => { assert.ok(factory.options.address); assert.ok(project.options.address); const data = await factory.methods.deployedProjects(0).call(); - console.log(data); }); // it("marks caller as the project manager", async () => { // const manager = await project.methods.manager().call();