MENU

delegatecall vs call in Solidity

0
588
0

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 vs call
  • method signature

You can play the game in my github –

https://github.com/maAPPsDEV/delegation-attack

Sorry, the comment form is closed at this time.