Search documentation of Cartouche

# Cartouche.VM.ExecutionResult (Cartouche v0.1.3)

Copy Markdown View Source

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

## Summary

### Types

t()

### Functions

from_context(context)

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.