Skip to content

Commit 8fed2f8

Browse files
committed
Fixed typo in error description when converting values to arrays (#4427, #4446).
1 parent 73adb39 commit 8fed2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.ts/utils/maths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function toBeHex(_value: BigNumberish, _width?: Numeric): string {
191191
if (result.length % 2) { result = "0" + result; }
192192
} else {
193193
const width = getNumber(_width, "width");
194-
assert(width * 2 >= result.length, `value exceeds width (${ width } bits)`, "NUMERIC_FAULT", {
194+
assert(width * 2 >= result.length, `value exceeds width (${ width } bytes)`, "NUMERIC_FAULT", {
195195
operation: "toBeHex",
196196
fault: "overflow",
197197
value: _value

0 commit comments

Comments
 (0)