diff --git a/src.ts/utils/maths.ts b/src.ts/utils/maths.ts index c25914715..0200c27a3 100644 --- a/src.ts/utils/maths.ts +++ b/src.ts/utils/maths.ts @@ -191,7 +191,7 @@ export function toBeHex(_value: BigNumberish, _width?: Numeric): string { if (result.length % 2) { result = "0" + result; } } else { const width = getNumber(_width, "width"); - assert(width * 2 >= result.length, `value exceeds width (${ width } bits)`, "NUMERIC_FAULT", { + assert(width * 2 >= result.length, `value exceeds width (${ width } bytes)`, "NUMERIC_FAULT", { operation: "toBeHex", fault: "overflow", value: _value