Skip to content

Commit

Permalink
Updating the project due to dependency changes: . #none
Browse files Browse the repository at this point in the history
Updating the project due to dependency changes. . #none
  • Loading branch information
tonjen authored Sep 20, 2023
2 parents 23715a2 + adcf7d1 commit 2c6cf39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2c6cf39

Please sign in to comment.