Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
remove incorrect '0x' -> '0x0' in to.js
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincburns committed Sep 27, 2018
1 parent e2744d9 commit 3efcab4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/utils/to.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module.exports = {
// Note: Do not use to.hex() when you really mean utils.addHexPrefix().
hex: function(val) {
if (typeof val == "string") {
if (val === "0x") {
return "0x0";
} else if (val.indexOf("0x") == 0) {
if (val.indexOf("0x") == 0) {
return val;
} else {
val = new utils.BN(val);
Expand Down

0 comments on commit 3efcab4

Please sign in to comment.