Skip to content

Commit

Permalink
Update EIP-5656: fix eip-5656 test cases and add gas costs
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
charles-cooper authored Jun 30, 2023
1 parent c7b78b1 commit 63f0f50
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions EIPS/eip-5656.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ post:
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
```

gas used: 6

`MCOPY 0 0 32` - copy 32 bytes from offset 0 to offset 0.

pre:
Expand All @@ -133,34 +135,40 @@ post:
0101010101010101010101010101010101010101010101010101010101010101
```

gas used: 6

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

pre:

```
000102030405060708 000000000000000000000000000000000000000000000000
000102030405060708 0000000000000000000000000000000000000000000000
```

post:

```
010203040506070808 000000000000000000000000000000000000000000000000
010203040506070808 0000000000000000000000000000000000000000000000
```

gas used: 6

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

pre:

```
000102030405060708 000000000000000000000000000000000000000000000000
000102030405060708 0000000000000000000000000000000000000000000000
```

post:

```
000001020304050607 000000000000000000000000000000000000000000000000
00000102030405060708 00000000000000000000000000000000000000000000
```

gas used: 6

## Security Considerations

TBA
Expand Down

0 comments on commit 63f0f50

Please sign in to comment.