Course lesson
Fetch the Owner's Wallet Address From a 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.
- Duration
- 3 min
- Access
- Included
- Transcript
- Retained from source evidence
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.