(time: tendermint::time::Time)
| 321 | } |
| 322 | |
| 323 | pub fn to_timestamp(time: tendermint::time::Time) -> Timestamp { |
| 324 | Timestamp( |
| 325 | time.unix_timestamp() |
| 326 | .try_into() |
| 327 | .expect("negative timestamp"), |
| 328 | ) |
| 329 | } |
| 330 | |
| 331 | pub fn to_code(exit_code: ExitCode) -> Code { |
| 332 | if exit_code.is_success() { |
no test coverage detected