Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
use modulo
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jun 12, 2024
1 parent fd0c28f commit cc2ed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sov-consensus-state-tracker/src/celestia_da.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl HasConsensusState for CelestiaSpec {
let da_params = TmConsensusParams::new(
tendermint::Time::from_unix_timestamp(
protobuf_time.unix_timestamp(),
u32::try_from(protobuf_time.unix_timestamp_nanos() / 1_000_000_000)
u32::try_from(protobuf_time.unix_timestamp_nanos() % 1_000_000_000)
.expect("no overflow"),
)
.expect("Could not obtain timestamp from header"),
Expand Down

0 comments on commit cc2ed15

Please sign in to comment.