Skip to content

Commit e192903

Browse files
committedMar 25, 2022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/bytes/src.ts/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function arrayify(value: BytesLike | Hexable | number, options?: DataOpti
118118
let hex = (<string>value).substring(2);
119119
if (hex.length % 2) {
120120
if (options.hexPad === "left") {
121-
hex = "0x0" + hex.substring(2);
121+
hex = "0" + hex;
122122
} else if (options.hexPad === "right") {
123123
hex += "0";
124124
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.