Function
panic_payload_message
(payload: &(dyn Any + Send))
Source from the content-addressed store, hash-verified
| 870 | } |
| 871 | |
| 872 | fn 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 | |
| 882 | fn payload_attributes_digest(payload_attributes: &BasePayloadAttributes) -> Result<B256> { |
| 883 | Ok(keccak256(serde_json::to_vec(payload_attributes)?)) |
Callers
nothing calls this directly
Tested by
no test coverage detected