diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-07-06 19:08:08 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 17:30:11 +0800 |
commit | ceb0739ba111215d47cc2ff9d80d542fa26d764a (patch) | |
tree | 40b718f79285c839219571a9bc575314814bdccc /rpc/api/debug_js.go | |
parent | 6ea28f93b99dff66471a04d24632440d6f4099db (diff) | |
download | go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.gz go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.bz2 go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.lz go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.xz go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.zst go-tangerine-ceb0739ba111215d47cc2ff9d80d542fa26d764a.zip |
fixed web3 formatters mismatch
Diffstat (limited to 'rpc/api/debug_js.go')
-rw-r--r-- | rpc/api/debug_js.go | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/rpc/api/debug_js.go b/rpc/api/debug_js.go index bd3a6dfb2..93fba537e 100644 --- a/rpc/api/debug_js.go +++ b/rpc/api/debug_js.go @@ -9,50 +9,43 @@ web3._extend({ name: 'printBlock', call: 'debug_printBlock', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] }), new web3._extend.Method({ name: 'getBlockRlp', call: 'debug_getBlockRlp', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] }), new web3._extend.Method({ name: 'setHead', call: 'debug_setHead', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: web3._extend.formatters.formatOutputBool + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] }), new web3._extend.Method({ name: 'processBlock', call: 'debug_processBlock', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: function(obj) { return obj; } + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] }), new web3._extend.Method({ name: 'seedHash', call: 'debug_seedHash', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: web3._extend.formatters.formatOutputString - }) , + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] + }), new web3._extend.Method({ name: 'dumpBlock', call: 'debug_dumpBlock', params: 1, - inputFormatter: [web3._extend.formatters.formatInputInt], - outputFormatter: function(obj) { return obj; } + inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter] }), new web3._extend.Method({ name: 'metrics', call: 'debug_metrics', params: 1, - inputFormatter: [web3._extend.formatters.formatInputBool], - outputFormatter: function(obj) { return obj; } + inputFormatter: [null] }) ], properties: |