Response to queries where the input was blatantly invalid.
(err: AppError, description: String)
| 58 | |
| 59 | /// Response to queries where the input was blatantly invalid. |
| 60 | pub 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 | } |
| 68 | pub fn to_exec_tx_result( |
| 69 | ret: FvmApplyRet, |
| 70 | domain_hash: Option<DomainHash>, |