MCPcopy Create free account
hub / github.com/base/base / validation_err

Function validation_err

crates/execution/txpool/src/bundle/rpc.rs:83–86  ·  view source on GitHub ↗
(reason: &'static str, msg: impl Into<String>)

Source from the content-addressed store, hash-verified

81}
82
83fn validation_err(reason: &'static str, msg: impl Into<String>) -> ErrorObjectOwned {
84 BundleApiMetrics::validation_errors(reason).increment(1);
85 rpc_err(ErrorCode::InvalidParams, msg)
86}
87
88/// Validates the structural constraints on a [`SendBundleRequest`].
89///

Callers 1

validate_bundle_requestFunction · 0.85

Calls 2

rpc_errFunction · 0.85
incrementMethod · 0.45

Tested by

no test coverage detected