DELEGATECALL
basically says that I’m a contract and I’m allowing (delegating) you to do whatever you want to my storage. DELEGATECALL
is a security risk for the sending contract which needs to trust that the receiving contract will treat the storage well.
DELEGATECALL
is another important keyword of the upgradable smart contract concept.
I made a Solidity wargame in where you can steal the ownership of the target contract by using DELEGATECALL
.
Through this game, you will learn about:
- difference between
delegatecall
vscall
- method signature
You can play the game in my github –
Sorry, the comment form is closed at this time.