diff --git a/tendermint-rs/src/amino_types/time.rs b/tendermint-rs/src/amino_types/time.rs index e80817f..af942c1 100644 --- a/tendermint-rs/src/amino_types/time.rs +++ b/tendermint-rs/src/amino_types/time.rs @@ -2,7 +2,7 @@ use crate::{ error::Error, - timestamp::{ParseTimestamp, Timestamp}, + time::{ParseTimestamp, Time}, }; use chrono::{TimeZone, Utc}; use std::time::{Duration, SystemTime, UNIX_EPOCH}; @@ -19,15 +19,15 @@ pub struct TimeMsg { } impl ParseTimestamp for TimeMsg { - fn parse_timestamp(&self) -> Result { + fn parse_timestamp(&self) -> Result { Ok(Utc.timestamp(self.seconds, self.nanos as u32).into()) } } -impl From for TimeMsg { - fn from(ts: Timestamp) -> TimeMsg { +impl From