mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Update rlp/raw.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
aa695895d7
commit
4f5c4d140f
1 changed files with 4 additions and 1 deletions
|
|
@ -165,7 +165,10 @@ func SplitListValues(b []byte) ([][]byte, error) {
|
|||
var elements = make([][]byte, 0, n)
|
||||
|
||||
for len(b) > 0 {
|
||||
_, tagsize, size, _ := readKind(b)
|
||||
_, tagsize, size, err := readKind(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
elements = append(elements, b[:tagsize+size])
|
||||
b = b[tagsize+size:]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue