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

Function invalid_check_tx

fendermint/app/src/tmconv.rs:47–54  ·  view source on GitHub ↗

Response to checks where the input was blatantly invalid. This indicates that the user who sent the transaction is either attacking or has a faulty client.

(err: AppError, description: String)

Source from the content-addressed store, hash-verified

45/// Response to checks where the input was blatantly invalid.
46/// This indicates that the user who sent the transaction is either attacking or has a faulty client.
47pub fn invalid_check_tx(err: AppError, description: String) -> response::CheckTx {
48 tracing::info!(error = ?err, description, "invalid check_tx");
49 response::CheckTx {
50 code: Code::Err(NonZeroU32::try_from(err as u32).expect("error codes are non-zero")),
51 info: description,
52 ..Default::default()
53 }
54}
55
56/// Response to queries where the input was blatantly invalid.
57pub fn invalid_query(err: AppError, description: String) -> response::Query {

Callers 1

check_txMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected