Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 550 Bytes

File metadata and controls

24 lines (16 loc) · 550 Bytes
fork Frontier
group Stack Memory Storage and Flow Operations

Notes

The memory is always fully accessible. What this instruction tracks is the highest index that was used in the current execution. A first write to a bigger index will trigger a memory expansion, which will cost gas.

Stack output

  1. Integer: current memory size in bytes.

Example

Input Output
2848

Error cases

The transaction is reverted in those cases:

  • Not enough gas.
  • Stack overflow.