![](https://cdn.nodeguardians.io/backend-production/solidity_bg_fc76a87eed/solidity_bg_fc76a87eed.webp)
Standalone
Delegate Call Detection
![](https://cdn.nodeguardians.io/backend-production/Mindeater_1200px_984c2010ca/Mindeater_1200px_984c2010ca.webp)
Detecting Delegate Calls
Download quests in Questplay
Mindeaters exert control over their prey using delegate calls. For a contract to defend itself from a mindeater, it needs to distinguish delegate calls from regular function calls.
The Mind
contract needs to implement the following function:
Function | Description |
| Returns true if the current call is from a delegate call, returns false otherwise. |
Your Task
In contracts/Mind.sol
implement isDelegateCall()
.
You can modify the constructor body and add any state variables that you might need.
Run tests in Questplay
Submit work in Questplay
![](https://cdn.nodeguardians.io/backend-production/Mindeater_1200px_984c2010ca/Mindeater_1200px_984c2010ca.webp)
You begin to hear voices in your head; some are your own, some are not. But how can you know?