Comparing version 0.1.6 to 0.1.7
13
index.js
@@ -130,2 +130,15 @@ /** | ||
format_address: function (addr) { | ||
if (addr && addr.constructor === String) { | ||
addr = this.strip_0x(addr); | ||
while (addr.length > 40 && addr.slice(0, 1) === "0") { | ||
addr = addr.slice(1); | ||
} | ||
while (addr.length < 40) { | ||
addr = "0" + addr; | ||
} | ||
return this.prefix_hex(addr); | ||
} | ||
}, | ||
strip_0x: function (str) { | ||
@@ -132,0 +145,0 @@ var h = str; |
{ | ||
"name": "augur-abi", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"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
1017495
20523