MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / parse_from_hex_str

Method parse_from_hex_str

contract-bindings/src/error_parser.rs:196–200  ·  view source on GitHub ↗
(err: &str)

Source from the content-addressed store, hash-verified

194 }
195
196 pub fn parse_from_hex_str(err: &str) -> Result<ParsedError, ParseContractError> {
197 let bytes = const_hex::decode(err)
198 .map_err(|e| ParseContractError::ErrorNotHexStr(e.to_string()))?;
199 Self::parse_from_bytes(bytes.as_slice())
200 }
201
202 /// Legacy method for backward compatibility
203 pub fn parse_from_bytes_legacy(bytes: &[u8]) -> Result<String, ParseContractError> {

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected