Since changeAdmin
is an external function, it can be called from outside the contract, bypassing the msg.sender == admin
check
If both the base contract and the derived contract define a public function with the same name (like changeAdmin
), Solidity will choose the function from the most derived contract (your contract)
Since changeAdmin
is an public function, it can be called from outside the contract, bypassing the msg.sender == admin
check
If needed, use the onlyOwner
modifier instead of checking msg.sender == admin
manually.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.