MCPcopy Create free account
hub / github.com/cowprotocol/services / testing_alloy_node_error

Function testing_alloy_node_error

crates/ethrpc/src/alloy/errors.rs:101–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99/// Useful for testing.
100#[cfg(any(test, feature = "test-util"))]
101pub fn testing_alloy_node_error() -> alloy_contract::Error {
102 alloy_contract::Error::TransportError(alloy_transport::TransportError::ErrorResp(
103 alloy_json_rpc::ErrorPayload::internal_error(),
104 ))
105}
106
107#[cfg(test)]
108mod tests {

Calls

no outgoing calls

Tested by 1