Skip to content

Commit

Permalink
Fixed typo in error description when converting values to arrays (#4427
Browse files Browse the repository at this point in the history
…, #4446).
  • Loading branch information
ricmoo committed Nov 1, 2023
1 parent 73adb39 commit 8fed2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/utils/maths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fed2f8

Please sign in to comment.