Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvalabs-manish committed Nov 1, 2024
1 parent 0c028bc commit ca332a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions bufferread.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ func (rb readbuffer) decodeBytes32(allowPack bool) ([32]byte, error) {
}

var bytes32 [32]byte

copy(bytes32[:], value)

return bytes32, nil
Expand Down
6 changes: 4 additions & 2 deletions polo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,10 @@ func TestSpecialBytes(t *testing.T) {

decoded, err := depolorizer.DepolorizeBytes32()
require.NoError(t, err)
require.Equal(t, [32]byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, decoded,
require.Equal(t, [32]byte{
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
}, decoded,
)
})
})
Expand Down

0 comments on commit ca332a7

Please sign in to comment.