Event about the message itself.
(from: Address, to: Address)
| 232 | |
| 233 | /// Event about the message itself. |
| 234 | pub fn to_message_event(from: Address, to: Address) -> Event { |
| 235 | let attr = |k: &str, v: Address| EventAttribute::from((k.to_string(), v.to_string(), true)); |
| 236 | Event::new( |
| 237 | "message".to_string(), |
| 238 | vec![attr("from", from), attr("to", to)], |
| 239 | ) |
| 240 | } |
| 241 | |
| 242 | /// Map to query results. |
| 243 | pub fn to_query(ret: FvmQueryRet, block_height: BlockHeight) -> anyhow::Result<response::Query> { |
no test coverage detected