Skip to content

Commit

Permalink
fix test in eip-5656
Browse files Browse the repository at this point in the history
the test accidentally demonstrated the behavior of MCOPY with length=9,
instead of length=8.

moved the space to byte ethereum#8 for clarity
  • Loading branch information
charles-cooper committed Feb 18, 2024
1 parent 980b11a commit 54de2ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions EIPS/eip-5656.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,32 +140,32 @@ gas used: 6

`MCOPY 0 1 8` - copy 8 bytes from offset 1 to offset 0 (overlapping).

pre:
pre (space at byte 8):

```
000102030405060708 0000000000000000000000000000000000000000000000
0001020304050607 080000000000000000000000000000000000000000000000
```

post:

```
010203040506070808 0000000000000000000000000000000000000000000000
0102030405060708 080000000000000000000000000000000000000000000000
```

gas used: 6

`MCOPY 1 0 8` - copy 8 bytes from offset 0 to offset 1 (overlapping).

pre:
pre (space at byte 8):

```
000102030405060708 0000000000000000000000000000000000000000000000
0001020304050607 080000000000000000000000000000000000000000000000
```

post:

```
00000102030405060708 00000000000000000000000000000000000000000000
0000010203040506 080000000000000000000000000000000000000000000000
```

gas used: 6
Expand Down

0 comments on commit 54de2ee

Please sign in to comment.