contractspecv0 sections of the contract’s WASM to resolve numeric error codes into human-readable enum names.API Reference
resolve_contract_error
Resolves custom error codes via WASM metadata.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Resolves custom error codes via WASM metadata.
pub async fn resolve_contract_error(
contract_id: &str,
error_index: u32,
wasm_cache: &WasmCache
) -> Result<ResolvedError, GratError>
contractspecv0 sections of the contract’s WASM to resolve numeric error codes into human-readable enum names.