diff --git a/Cargo.toml b/Cargo.toml index a0ee5e8..da325d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ edition = "2018" build = "build.rs" name = "ton_types" -version = "1.10.3" +version = "1.10.4" [dependencies] lockfree = { git = "https://github.com/tonlabs/lockfree.git" } diff --git a/src/cells_serialization.rs b/src/cells_serialization.rs index b6b6ec6..5150bed 100644 --- a/src/cells_serialization.rs +++ b/src/cells_serialization.rs @@ -245,8 +245,8 @@ impl BagOfCells { for i in 0..cell.references_count() { let child = cell.reference(i).unwrap(); - let child_index = hashes_to_indexes[&child.repr_hash()] as usize; - assert!(child_index > cell_index); + let child_index = hashes_to_indexes[&child.repr_hash()] as u64; + assert!(child_index > cell_index as u64); dest.write_all(&(child_index).to_be_bytes()[(8-ref_size)..8])?; } }