diff --git a/CHANGELOG.md b/CHANGELOG.md index 22eaadf..3bb6434 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## Version 1.9.104 + +- Fixed `Block::set_gen_utime_ms` method + ## Version 1.9.101 - Fixed deserialization of BlockInfo. Added method BlockInfo::read_from_ex() diff --git a/Cargo.toml b/Cargo.toml index fe3f0ec..ca8e4b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ build = 'common/build/build.rs' edition = '2021' name = 'ton_block' -version = '1.9.103' +version = '1.9.104' [dependencies] base64 = '0.13' diff --git a/src/blocks.rs b/src/blocks.rs index e6a67e1..853e551 100644 --- a/src/blocks.rs +++ b/src/blocks.rs @@ -333,7 +333,7 @@ impl BlockInfo { self.gen_utime_ms_part = 0; } pub fn set_gen_utime_ms(&mut self, gen_utime_millis: u64) { - self.gen_utime = UnixTime32::new(gen_utime_millis as u32 / 1000); + self.gen_utime = UnixTime32::new((gen_utime_millis / 1000) as u32); self.gen_utime_ms_part = (gen_utime_millis % 1000) as u16; }