mirror of https://github.com/status-im/EIPs.git
Automatically merged updates to draft EIP(s) 1283
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
This commit is contained in:
parent
7df9314343
commit
787965eaae
|
@ -191,11 +191,31 @@ anticipated, and many contract will see gas reduction.
|
|||
|
||||
## Test Cases
|
||||
|
||||
To be added.
|
||||
Below we provide 17 test cases. 15 of them covering consecutive two
|
||||
`SSTORE` operations are based on work [by
|
||||
@chfast](https://github.com/ethereum/tests/issues/483). Two additional
|
||||
case with three `SSTORE` operations is used to test the case when a
|
||||
slot is reset and then set again.
|
||||
|
||||
## Implementation
|
||||
|
||||
To be added.
|
||||
| Code | Used Gas | Refund | Original | 1st | 2nd | 3rd |
|
||||
|------------------------------------|----------|--------|----------|-----|-----|-----|
|
||||
| `0x60006000556000600055` | 412 | 0 | 0 | 0 | 0 | |
|
||||
| `0x60006000556001600055` | 20212 | 0 | 0 | 0 | 1 | |
|
||||
| `0x60016000556000600055` | 20212 | 19800 | 0 | 1 | 0 | |
|
||||
| `0x60016000556002600055` | 20212 | 0 | 0 | 1 | 2 | |
|
||||
| `0x60016000556001600055` | 20212 | 0 | 0 | 1 | 1 | |
|
||||
| `0x60006000556000600055` | 5212 | 15000 | 1 | 0 | 0 | |
|
||||
| `0x60006000556001600055` | 5212 | 4800 | 1 | 0 | 1 | |
|
||||
| `0x60006000556002600055` | 5212 | 0 | 1 | 0 | 2 | |
|
||||
| `0x60026000556000600055` | 5212 | 15000 | 1 | 2 | 0 | |
|
||||
| `0x60026000556003600055` | 5212 | 0 | 1 | 2 | 3 | |
|
||||
| `0x60026000556001600055` | 5212 | 4800 | 1 | 2 | 1 | |
|
||||
| `0x60026000556002600055` | 5212 | 0 | 1 | 2 | 2 | |
|
||||
| `0x60016000556000600055` | 5212 | 15000 | 1 | 1 | 0 | |
|
||||
| `0x60016000556002600055` | 5212 | 0 | 1 | 1 | 2 | |
|
||||
| `0x60016000556001600055` | 412 | 0 | 1 | 1 | 1 | |
|
||||
| `0x600160005560006000556001600055` | 40218 | 19800 | 0 | 1 | 0 | 1 |
|
||||
| `0x600060005560016000556000600055` | 10218 | 19800 | 1 | 0 | 1 | 0 |
|
||||
|
||||
## Copyright
|
||||
|
||||
|
|
Loading…
Reference in New Issue