ton-sdk-ruby 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ton-sdk-ruby/boc/builder.rb +1 -1
- data/lib/ton-sdk-ruby/boc/cell.rb +1 -4
- data/lib/ton-sdk-ruby/boc/serializer.rb +1 -1
- data/lib/ton-sdk-ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e506fcf3b735651dfa9c7b184ae47125e2f6fe31789e41a900bc1baacb94d2
|
4
|
+
data.tar.gz: 25b58c71504f6ae8e409acadd457fdd614fcd0962f2a67b2cc7e34c7eaafdd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dea39c14e9d55fcfd52a1a1f01585247b876a13a55341094e1e80069b3fef2e93fdaeac32063ce983186d815222d4b76feb74cdabb16a1fa924f6c2a232c349
|
7
|
+
data.tar.gz: 69f35f6ebf20a997044734b4b6047e80f505cf7bdfc0a8afcfbdcc5ba922e58fa3951b149e182044d1bdd863b7de6410d1975cde5bc9a33e2c88fd53fd2608cd
|
@@ -229,7 +229,6 @@ module TonSdkRuby
|
|
229
229
|
# Calculate depth descriptor
|
230
230
|
def self.get_depth_descriptor(depth)
|
231
231
|
descriptor = [(depth / 256).floor, depth % 256].pack('C*')
|
232
|
-
byebug
|
233
232
|
bytes_to_bits(descriptor)
|
234
233
|
end
|
235
234
|
|
@@ -348,11 +347,9 @@ module TonSdkRuby
|
|
348
347
|
depth_repr.concat(Cell.get_depth_descriptor(ref_depth))
|
349
348
|
hash_repr.concat(hex_to_bits(ref_hash))
|
350
349
|
depth = [depth, ref_depth].max
|
351
|
-
byebug
|
352
350
|
end
|
353
351
|
representation = refs_descriptor + bits_descriptor + data + depth_repr + hash_repr
|
354
|
-
|
355
|
-
byebug
|
352
|
+
|
356
353
|
if @refs.length.positive? && depth >= 1024
|
357
354
|
raise 'Cell depth can\'t be more than 1024'
|
358
355
|
end
|
data/lib/ton-sdk-ruby/version.rb
CHANGED