-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Viem Version
2.37
Current Behavior
sliceHex("0x12345678",1,0) = "0x" // ok, supports zero length hex values
sliceHex("0x12345678",4,0) // reverts on "out of bounds"
This should not revert, but return an empty hex string (e.g. given calldata, I want to extract the params block)
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
No labels