When a contract uses a `delegatecall` to another contract, what big thing about whose storage is used changes compared to a normal `call`?
When a contract uses a `delegatecall` to another contract, the big thing that changes regarding whose storage is used is that the `delegatecall` executes the code of the target contract using the storage of the *calling contract*, whereas a normal `call` executes the code of the target contract using the storage of the *target contract*. To explain, a `contract` is a program on the blockchain that manages its own `storage`, which holds its persistent data like state variables. When a `calling contract` makes a normal `call` to a `target contrac....
Community Answers
Sign in to open profiles and full community answers.
No community answers yet. Be the first to submit one.