Comparing version 0.2.2 to 0.2.3
15
index.js
@@ -162,2 +162,17 @@ /** | ||
zero_prefix: function (h) { | ||
if (h !== undefined && h !== null && h.constructor === String) { | ||
h = this.strip_0x(h); | ||
if (h.length % 2) h = "0" + h; | ||
if (h.slice(0,2) !== "0x" && h.slice(0,3) !== "-0x") { | ||
if (h.slice(0,1) === '-') { | ||
h = "-0x" + h.slice(1); | ||
} else { | ||
h = "0x" + h; | ||
} | ||
} | ||
} | ||
return h; | ||
}, | ||
prefix_hex: function (n) { | ||
@@ -164,0 +179,0 @@ if (n !== undefined && n !== null) { |
{ | ||
"name": "augur-abi", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Contract ABI serialization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1019733
20578