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

Function panic_payload_message

crates/proof/host/src/handler.rs:872–880  ·  view source on GitHub ↗
(payload: &(dyn Any + Send))

Source from the content-addressed store, hash-verified

870}
871
872fn panic_payload_message(payload: &(dyn Any + Send)) -> &str {
873 if let Some(message) = payload.downcast_ref::<&'static str>() {
874 message
875 } else if let Some(message) = payload.downcast_ref::<String>() {
876 message.as_str()
877 } else {
878 "unknown panic payload"
879 }
880}
881
882fn payload_attributes_digest(payload_attributes: &BasePayloadAttributes) -> Result<B256> {
883 Ok(keccak256(serde_json::to_vec(payload_attributes)?))

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected