Skip to content

Commit 72031e1

Browse files
committed
Change opcodes
Restore the opcodes to 0x5c and 0x5d, as per execution layer meeting ethereum#162.
1 parent 6791956 commit 72031e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EIPS/eip-1153.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ requires: 2200, 3529
1717
This proposal introduces transient storage opcodes, which manipulate state that behaves identically to storage, except that transient storage is discarded after every transaction. In other words, the values of transient storage are never deserialized from storage or serialized to storage. Thus transient storage is cheaper since it never requires disk access. Transient storage is accessible to smart contracts via 2 new opcodes, `TLOAD` and `TSTORE`, where “T” stands for "transient:"
1818

1919
```
20-
TLOAD (0xb3)
21-
TSTORE (0xb4)
20+
TLOAD (0x5c)
21+
TSTORE (0x5d)
2222
```
2323

2424
## Motivation
@@ -42,7 +42,7 @@ These opcodes are more efficient to execute than the `SSTORE` and `SLOAD` opcode
4242

4343
## Specification
4444

45-
Two new opcodes are added to EVM, `TLOAD` (`0xb3`) and `TSTORE` (`0xb4`). Note that previous drafts of this EIP specified the values `0x5c` and `0x5d` for `TLOAD` and `TSTORE` respectively, but these have been modified so as not to conflict with other draft EIPs.
45+
Two new opcodes are added to EVM, `TLOAD` (`0x5c`) and `TSTORE` (`0x5d`). (Note that previous drafts of this EIP specified the values `0xb3` and `0xb4` for `TLOAD` and `TSTORE` respectively to avoid conflict with other EIPs. The conflict has since been removed.)
4646

4747
They use the same arguments on stack as `SLOAD` (`0x54`) and `SSTORE` (`0x55`).
4848

0 commit comments

Comments
 (0)