diff options
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r-- | dist/ethereum.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js index 9dbb8c818..d7b55b6e4 100644 --- a/dist/ethereum.js +++ b/dist/ethereum.js @@ -111,7 +111,7 @@ var setupInputTypes = function () { { type: prefixedType('string'), format: formatString }, { type: prefixedType('real'), format: formatInt }, { type: prefixedType('ureal'), format: formatInt }, - { type: namedType('address') }, + { type: namedType('address'), format: formatInt }, { type: namedType('bool'), format: formatBool } ]; }; @@ -173,6 +173,10 @@ var setupOutputTypes = function () { return web3.toAscii(value); }; + var formatAddress = function (value) { + return "0x" + value.slice(value.length - 40, value.length); + }; + return [ { type: prefixedType('uint'), format: formatInt }, { type: prefixedType('int'), format: formatInt }, @@ -180,7 +184,7 @@ var setupOutputTypes = function () { { type: prefixedType('string'), format: formatString }, { type: prefixedType('real'), format: formatInt }, { type: prefixedType('ureal'), format: formatInt }, - { type: namedType('address') }, + { type: namedType('address'), format: formatAddress }, { type: namedType('bool'), format: formatBool } ]; }; |