From 8fed2f84768ace4bf3e5742c931a74841da7c637 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 1 Nov 2023 16:04:27 -0400 Subject: [PATCH] Fixed typo in error description when converting values to arrays (#4427, #4446). --- src.ts/utils/maths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/utils/maths.ts b/src.ts/utils/maths.ts index c259147151..0200c27a3b 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