We don’t want any user to be able to access admin pages. Let’s check if the user’s wallet address matches the address of our connected smart contract.
This can be done by using OpenZeppelin to get the owner address from the smart contract, then comparing that to the currently connected address.
the owner() function is not working? do I have a mistake on my side or did ethers change the ABI?
having the same issue with owner() not working and not being able to verify myself as the owner
You have to change your network in metamask to rinkeby for the owner method to work.