AdminVault.sol
Overview
The AdminVault
contract is a Solidity smart contract responsible for managing the owner and admin roles within a decentralized application (DApp) or smart contract ecosystem. It allows the admin to change the owner and set a new admin for the contract, enabling flexibility and control over the contract's management.
Contract Information
SPDX-License-Identifier: MIT
Solidity Version: 0.8.10
State Variables
address public owner
: This state variable represents the current owner of the contract, who has certain privileges and control over the contract's operations.address public admin
: This state variable represents the current admin of the contract, who can change the owner and set a new admin.
Custom Error
The contract defines one custom error that can be thrown during execution:
SenderNotAdmin()
: This error is thrown when a function is called that requires the sender to be the admin, but the sender is not the admin according to theadmin
state variable.
Public Functions
Last updated