solidity-bytes-utils icon indicating copy to clipboard operation
solidity-bytes-utils copied to clipboard

First require of the slice

Open ngurmen opened this issue 3 years ago • 0 comments

Hi, I have a question on the first require on the slice method. Shouldn't this require(_length + 31 >= _length, "slice_overflow"); be require(_bytes.length + 31 >= _length, "slice_overflow"); to be meaningful?

ngurmen avatar Oct 10 '22 00:10 ngurmen