Skip to content

Map All Context Error Codes to Names, Descriptions, and Severity Levels #198

@Emrys02

Description

@Emrys02

Implement the complete mapping of all Context category error subcodes. Context errors relate to the execution environment itself — invalid protocol version, missing features, or host function calls made in the wrong context. Rare but confusing because they suggest something is wrong with the environment, not the contract logic.

Implementation Guidelines

  • Create crates/core/src/decode/mappings/context.rs
  • Same structure: ContextErrorDetail with code, name, summary, severity
  • Map all known subcodes from soroban-env-host (InvalidAction, InternalError)

Expectations

  • What done looks like: Every Context subcode has a mapping. The descriptions clarify whether the issue is the contract or the environment.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions