Skip to content

Commit 53830a8

Browse files
committed
fix: use correct read uvarint function when decoding Handshake covenants
Signed-off-by: Aurora Gaffney <[email protected]>
1 parent 1f97e95 commit 53830a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/handshake/covenant.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ func (c *GenericCovenant) Decode(r io.Reader) error {
4343
if err := binary.Read(r, binary.LittleEndian, &c.Type); err != nil {
4444
return err
4545
}
46-
itemCount, err := binary.ReadUvarint(r.(io.ByteReader))
46+
itemCount, err := ReadUvarintReader(r)
4747
if err != nil {
4848
return err
4949
}
5050
for range itemCount {
51-
itemLength, err := binary.ReadUvarint(r.(io.ByteReader))
51+
itemLength, err := ReadUvarintReader(r)
5252
if err != nil {
5353
return err
5454
}

0 commit comments

Comments
 (0)