Implement the complete mapping of all Value category error subcodes. Value errors fire when the host encounters invalid or unexpected values, type mismatches, malformed ScVal conversions, or out-of-range integers passed to host functions.
Implementation Guidelines
- Create
crates/core/src/decode/mappings/value.rs
- Same structure:
ValueErrorDetail with code, name, summary, severity
- Map all known subcodes from
soroban-env-host (InvalidInput, UnexpectedType, InternalError)
Expectations
- What done looks like: Every Value subcode maps to a description that helps developers trace back to which function argument or conversion was invalid.
Implement the complete mapping of all Value category error subcodes. Value errors fire when the host encounters invalid or unexpected values, type mismatches, malformed ScVal conversions, or out-of-range integers passed to host functions.
Implementation Guidelines
crates/core/src/decode/mappings/value.rsValueErrorDetailwithcode,name,summary,severitysoroban-env-host(InvalidInput,UnexpectedType,InternalError)Expectations