dappuniversity / ico_irl

Real World ICO Ethereum Smart Contracts
89 stars 77 forks source link

Chrome console showing null account. #16

Closed ChowdhuryRidwan closed 4 years ago

ChowdhuryRidwan commented 4 years ago

Problem is in the connection of metamask to the local blockchain by using its RPC address. I use the private key of the first account to get its information. But in my system the first account's actual address in ganache is: 0x4DF4F75E96D49A1b61a4Cd1800d55444bb39C761 but the address that is displayed in my chrome console is 0xED4Cd7eA80CfdDef5c78F6A02C9352124AA6D835. Also in app.js in the render function where I have to display my account I am getting account as NULL. Please do confirm why it is different. How do I wire up the actual account to app.js