Skip to content

Commit

Permalink
accounts/abi: fix typo in error message (ethereum#25742)
Browse files Browse the repository at this point in the history
  • Loading branch information
bprosnitz authored and gzliudan committed Jan 9, 2025
1 parent c3964a7 commit a791e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func forEachUnpack(t Type, output []byte, start, size int) (interface{}, error)
return nil, fmt.Errorf("cannot marshal input to array, size is negative (%d)", size)
}
if start+32*size > len(output) {
return nil, fmt.Errorf("abi: cannot marshal in to go array: offset %d would go over slice boundary (len=%d)", len(output), start+32*size)
return nil, fmt.Errorf("abi: cannot marshal into go array: offset %d would go over slice boundary (len=%d)", len(output), start+32*size)
}

// this value will become our slice or our array, depending on the type
Expand Down

0 comments on commit a791e64

Please sign in to comment.