Skip to content

Commit 838ac6f

Browse files
committed
Format
1 parent 4d7c9f2 commit 838ac6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ _This cheatsheet is based on version 0.8.29_
143143
- [`delegatecall`](#delegatecall)
144144
- [Behavior](#behavior-1)
145145
- [`staticcall`](#staticcall)
146+
- [Comparison](#comparison)
146147
- [Security \& Best Practices](#security--best-practices)
147148
- [Create, Create2, Create3, and CreateX](#create-create2-create3-and-createx)
148149
- [ABI Encode \& Decode](#abi-encode--decode)
@@ -2320,6 +2321,8 @@ contract Proxy {
23202321
(bool success, bytes memory returnData) = targetAddress.staticcall(calldata);
23212322
```
23222323

2324+
## Comparison
2325+
23232326
| Aspect | call | delegatecall |
23242327
| -------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
23252328
| **State Context** | Runs in the **target’s** context. Writes in the **target’s** storage. | Runs in the **caller’s** context. Writes in the **caller’s** storage. |

0 commit comments

Comments
 (0)