Describe the bug
Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'address')
Area Where Bug Occurred
UI/UX
[ x] Business Logic
How to reproduce the error/bug
Complete the steps to deploy it locally.
When you open the localhost, an error screen appears with that description ("Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'address')")
Additional context
The system says that the error is in the following file: supply-chain/src/Services/Contexts/ContractContext.js:45
45 | const main = new web3.eth.Contract(MainContract.abi, MainContract.networks[networkId].address);
I am logging into the application that is running on localhost with the same wallet address that i used for deploying the contracts, still I am not logged in as admin