Course lesson
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.
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.
Course lesson
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.