Skip to content

Commit

Permalink
Update eip_draft.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingAng committed Sep 4, 2023
1 parent f706135 commit 9d2b74a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eip_draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The disassembly of the new minimal proxy contract code:
| [05] | 5f | PUSH0 | 0 0 |
| [06] | 36 | CALLDATASIZE | cds 0 0 |
| [07] | 5f | PUSH0 | 0 cds 0 0 |
| [08] | 73bebe.| PUSH20 | 0xbebe. 0 cds 0 0 |
| [08] | 73bebe.| PUSH20 0xbebe. | 0xbebe. 0 cds 0 0 |
| [1d] | 5a | GAS | gas 0xbebe. 0 cds 0 0|
| [1e] | f4 | DELEGATECALL | suc |
| [1f] | 3d | RETURNDATASIZE | rds suc |
Expand All @@ -61,7 +61,7 @@ The disassembly of the new minimal proxy contract code:
| [23] | 5f | PUSH0 | 0 suc |
| [24] | 3d | RETURNDATASIZE | rds 0 suc |
| [25] | 91 | SWAP2 | suc 0 rds |
| [26] | 602a | PUSH1 | 0x2a suc 0 rds |
| [26] | 602a | PUSH1 0x2a | 0x2a suc 0 rds |
| [27] | 57 | JUMPI | 0 rds |
| [29] | fd | REVERT | |
| [2a] | 5b | JUMPDEST | 0 rds |
Expand Down Expand Up @@ -157,7 +157,7 @@ To forward the calldata to the delegate call, we need to prepare arguments for t
| [05] | 5f | PUSH0 | 0 0 |
| [06] | 36 | CALLDATASIZE | cds 0 0 |
| [07] | 5f | PUSH0 | 0 cds 0 0 |
| [08] | 73bebe.| PUSH20 | 0xbebe. 0 cds 0 0 |
| [08] | 73bebe.| PUSH20 0xbebe. | 0xbebe. 0 cds 0 0 |
| [1d] | 5a | GAS | gas 0xbebe. 0 cds 0 0|
| [1e] | f4 | DELEGATECALL | suc |
```
Expand Down Expand Up @@ -187,7 +187,7 @@ Lastly we need to return the data or revert the transaction based on whether the
| [23] | 5f | PUSH0 | 0 suc |
| [24] | 3d | RETURNDATASIZE | rds 0 suc |
| [25] | 91 | SWAP2 | suc 0 rds |
| [26] | 602a | PUSH1 | 0x2a suc 0 rds |
| [26] | 602a | PUSH1 0x2a | 0x2a suc 0 rds |
| [27] | 57 | JUMPI | 0 rds |
| [29] | fd | REVERT | |
| [2a] | 5b | JUMPDEST | 0 rds |
Expand Down

0 comments on commit 9d2b74a

Please # to comment.