MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / invalid_query

Function invalid_query

fendermint/app/src/tmconv.rs:60–67  ·  view source on GitHub ↗

Response to queries where the input was blatantly invalid.

(err: AppError, description: String)

Source from the content-addressed store, hash-verified

58
59/// Response to queries where the input was blatantly invalid.
60pub fn invalid_query(err: AppError, description: String) -> response::Query {
61 tracing::info!(error = ?err, description, "invalid query");
62 response::Query {
63 code: Code::Err(NonZeroU32::try_from(err as u32).expect("error codes are non-zero")),
64 info: description,
65 ..Default::default()
66 }
67}
68pub fn to_exec_tx_result(
69 ret: FvmApplyRet,
70 domain_hash: Option<DomainHash>,

Callers 1

queryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected