Comparing version 0.5.6 to 0.5.7
13
index.js
@@ -18,3 +18,3 @@ /** | ||
version: "0.5.6", | ||
version: "0.5.7", | ||
@@ -129,9 +129,10 @@ constants: { | ||
short_string_to_int256: function (s) { | ||
if (s.length > 32) s = s.slice(0, 32); | ||
return this.prefix_hex(this.pad_right(new Buffer(s, "utf8").toString("hex"))); | ||
short_string_to_int256: function (shortstring) { | ||
var int256 = shortstring; | ||
if (int256.length > 32) int256 = int256.slice(0, 32); | ||
return this.prefix_hex(this.pad_right(new Buffer(int256, "utf8").toString("hex"))); | ||
}, | ||
int256_to_short_string: function (n) { | ||
return new Buffer(this.strip_0x(this.remove_trailing_zeros(n)), "hex").toString("utf8"); | ||
int256_to_short_string: function (int256) { | ||
return new Buffer(this.strip_0x(this.remove_trailing_zeros(int256)), "hex").toString("utf8"); | ||
}, | ||
@@ -138,0 +139,0 @@ |
{ | ||
"name": "augur-abi", | ||
"version": "0.5.6", | ||
"version": "0.5.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
1041843
20716