add inputformatter for sha3

This commit is contained in:
Fabian Vogelsteller 2015-03-11 15:08:17 +01:00
parent 50ca903bfb
commit 5636510060
4 changed files with 4 additions and 4 deletions

2
dist/ethereum.js vendored
View File

@ -1105,7 +1105,7 @@ var c = require('./utils/config');
/// @returns an array of objects describing web3 api methods
var web3Methods = function () {
return [
{ name: 'sha3', call: 'web3_sha3' }
{ name: 'sha3', call: 'web3_sha3', inputFormatter: utils.toHex }
];
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@ var c = require('./utils/config');
/// @returns an array of objects describing web3 api methods
var web3Methods = function () {
return [
{ name: 'sha3', call: 'web3_sha3' }
{ name: 'sha3', call: 'web3_sha3', inputFormatter: utils.toHex }
];
};