lakshya-20 / supply-chain

Decentralised food supply chain to trace products from end to end and provide a smart and reliable way of providing information to the customers.
food-supply-chain.vercel.app
GNU Affero General Public License v3.0
59 stars 24 forks source link

Error in connection [BUG] #26

Closed SURAJPATIL6088 closed 11 months ago

SURAJPATIL6088 commented 11 months ago

Describe the bug A clear and concise description of what the bug is.

Area Where Bug Occurred

How to reproduce the error/bug

  1. run the project
  2. after connecting the metamask account

Before submitting an issue check the below

when i run the project i get these page but the profile page is not opening as well as i don't have any option like addng product and farmers. image

lakshya-20 commented 11 months ago

Hello @SURAJPATIL6088 The first thing to check is that you are logged in with the account you used to deploy smart contracts on Ganache, which would be the admin account for the application. If already there try redeploying the contracts.

To get a farmer in the application, you have to log in with a different account and register as a farmer. To add products, you be logged in with a manufacturer account that you can get by registering a new account as a manufacturer.