From adcf7d16afe851a1f6e686c6f2c9bafb6dbd85db Mon Sep 17 00:00:00 2001 From: tonjen Date: Wed, 20 Sep 2023 19:07:06 +0000 Subject: [PATCH] Updating the project due to dependency changes: . #none --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- src/blocks.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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; }