Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 966 Bytes

51.mdx

File metadata and controls

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

Index 1 is top of the stack. See PUSH.

Stack input

  1. offset: offset in the memory in bytes.

Stack output

  1. value: the 32 bytes in memory starting at that offset. If it goes beyond its current size (see MSIZE), writes 0s.

Examples

Memory
0x00000000000000000000000000000000000000000000000000000000000000FF
* Input Output * * Input Output
1 0 0xFF * 1 1 0xFF00

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.