Comparing version 0.2.0 to 0.2.1
@@ -74,2 +74,5 @@ /** | ||
var hexbyte, hex = ''; | ||
if (str && str.constructor === Object || str.constructor === Array) { | ||
str = JSON.stringify(str); | ||
} | ||
for (var i = 0, len = str.length; i < len; ++i) { | ||
@@ -91,3 +94,3 @@ hexbyte = str.charCodeAt(i).toString(16); | ||
case Array: | ||
h = this.encode_hex(JSON.stringify(n)); | ||
h = this.bignum(n, "hex"); | ||
break; | ||
@@ -94,0 +97,0 @@ case BigNumber: |
{ | ||
"name": "augur-abi", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
1019540
20569