-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bugVerified to be an issue.Verified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.v6Issues regarding v6Issues regarding v6
Description
Ethers Version
6.15.0
Search Terms
utils, math, toBeHex
Describe the Problem
A call to toBeHex with value and width set to zero throws although it should return 0x.
Code Snippet
toBeHex(0, 0)Contract ABI
Errors
RangeError: value exceeds width (0 bytes) (operation="toBeHex", fault="overflow", value=0, code=NUMERIC_FAULT, version=6.15.0)Environment
No response
Environment (Other)
No response
Metadata
Metadata
Assignees
Labels
bugVerified to be an issue.Verified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.v6Issues regarding v6Issues regarding v6