Skip to content

Commit

Permalink
refactor: simplify hex number conversion
Browse files Browse the repository at this point in the history
Signed-off-by: homura <[email protected]>
  • Loading branch information
homura authored Oct 13, 2023
1 parent fe92d3e commit 5ff0e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/src/normalizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Reader } from "./reader";
function normalizeHexNumber(length) {
return function (debugPath, value) {
if (!(value instanceof ArrayBuffer)) {
let intValue = BI.from(value).toHexString().substring(2);
let intValue = BI.from(value).toString(16);
if (intValue.length % 2 !== 0) {
intValue = "0" + intValue;
}
Expand Down

0 comments on commit 5ff0e0b

Please sign in to comment.