Skip to content

Commit

Permalink
Fixed typo in error description when converting values to arrays (eth…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 68bfbee commit b94235b
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 b94235b

Please sign in to comment.