Cartouche.VM.ExecutionResult (Cartouche v0.2.0)

Copy Markdown View Source

Terminal result of a Cartouche.VM run: the final stack, whether the call reverted, and the return data.

Summary

Functions

Projects a halted execution Context down to the public-facing ExecutionResult — keeping only the final stack, revert flag, and return data.

Types

t()

@type t() :: %Cartouche.VM.ExecutionResult{
  return_data: binary(),
  reverted: boolean(),
  stack: [binary()]
}

Functions

from_context(context)

@spec from_context(Cartouche.VM.Context.t()) :: t()

Projects a halted execution Context down to the public-facing ExecutionResult — keeping only the final stack, revert flag, and return data.