Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 870 Bytes

5C.mdx

File metadata and controls

32 lines (21 loc) · 870 Bytes
fork group
Cancun
Stack Memory Storage and Flow Operations

Index 1 is top of the stack.

Stack input

  1. key: 32-byte key in transient storage.

Stack output

  1. value: 32-byte value corresponding to that key. 0 if that key was never written before.

Examples

Transient storage key Transient storage value
0 46
* Input Output * * Input Output
1 0 46 * 1 1 0

Reproduce in playground.

Error cases

The state changes done by the current context are reverted in those cases:

  • Not enough gas.
  • Not enough values on the stack.