Skip to content

Commit

Permalink
Fix returned "rest" data from utils.ReadShortData
Browse files Browse the repository at this point in the history
"rest" should only return rest of data. It was returning data+rest.
  • Loading branch information
fxamacker committed Jan 4, 2022
1 parent d1296e5 commit 2b84aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ledger/common/utils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func ReadShortData(input []byte) (data []byte, rest []byte, err error) {
return nil, rest, err
}
data = rest[:size]
rest = rest[size:]
return
}

Expand Down

0 comments on commit 2b84aaa

Please sign in to comment.