Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

slice method on ConstantBytes32Value ignores second parameter #445

Closed
macfarla opened this issue Nov 11, 2022 · 0 comments · Fixed by #446
Closed

slice method on ConstantBytes32Value ignores second parameter #445

macfarla opened this issue Nov 11, 2022 · 0 comments · Fixed by #446

Comments

@macfarla
Copy link
Contributor

always returns a 32 byte value, ignoring the second param

Example: this test fails:

assertThat(Bytes32.ZERO.slice(12, 20).size()).isEqualTo(20);

expected: 20
but was: 32

tuweni 2.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant