ton icon indicating copy to clipboard operation
ton copied to clipboard

Range step warning in Ton.Address.friendly_address/2

Open Ljzn opened this issue 9 months ago • 0 comments

warning: Range.new/2 and first..last default to a step of -1 when last < first. Use Range.new(first, last, -1) or first..last//-1, or pass 1 if that was your intention
  (ton 0.4.5) lib/ton/bitstring.ex:185: Ton.Bitstring.get_top_upped_array/1
  (ton 0.4.5) lib/ton/cell.ex:227: Ton.Cell.data_with_descriptors/1
  (ton 0.4.5) lib/ton/cell.ex:205: Ton.Cell.binary_repr/1
  (ton 0.4.5) lib/ton/cell.ex:155: Ton.Cell.hash/1
  (ton 0.4.5) lib/ton/address.ex:43: Ton.Address.friendly_address/2

Ljzn avatar Apr 04 '25 09:04 Ljzn