The Laundrette::retrieveAdmin
function is designed to call the executeAction
function in the Kernel
contract, but it will always revert due to the onlyExecutor
modifier on the executeAction
function.
The Laundrette::retrieveAdmin
function attempts to change the admin address of the Kernel
contract by calling the executeAction
. However, the executeAction
function has the onlyExecutor
modifier, which means that only the executor address set in the Kernel
contract can successfully call this function.
Laundrette
contract is set as an admin not executor in the deployer script.
Since the Laundrette
contract is not the executor, calling the retrieveAdmin
function from any address will always revert with the Kernel_OnlyExecutor
error.
No matter who call the function Laundrette::retrieveAdmin
it will always revert with "Kernel_OnlyExecutor"
Test made with foundry
The Laundrette::retrieveAdmin
function is effectively unusable and will always revert, as it attempts to call a function (executeAction) that it does not have permission to call.
Foundry
Remove the retrieveAdmin
function or set the Laundrette
contract as the executor
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.