aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/eth_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-07-06 19:08:08 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 17:30:11 +0800
commitceb0739ba111215d47cc2ff9d80d542fa26d764a (patch)
tree40b718f79285c839219571a9bc575314814bdccc /rpc/api/eth_js.go
parent6ea28f93b99dff66471a04d24632440d6f4099db (diff)
downloaddexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.gz
dexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.zst
dexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.zip
fixed web3 formatters mismatch
Diffstat (limited to 'rpc/api/eth_js.go')
-rw-r--r--rpc/api/eth_js.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/rpc/api/eth_js.go b/rpc/api/eth_js.go
index 4512cc147..4c3e9e4db 100644
--- a/rpc/api/eth_js.go
+++ b/rpc/api/eth_js.go
@@ -12,23 +12,20 @@ web3._extend({
name: 'sign',
call: 'eth_sign',
params: 2,
- inputFormatter: [web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
- outputFormatter: web3._extend.formatters.formatOutputString
+ inputFormatter: [web3._extend.utils.toAddress, null]
}),
new web3._extend.Method({
name: 'resend',
call: 'eth_resend',
params: 3,
- inputFormatter: [function(obj) { return obj; },web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
- outputFormatter: web3._extend.formatters.formatOutputString
+ inputFormatter: [null, null, null]
})
],
properties:
[
new web3._extend.Property({
name: 'pendingTransactions',
- getter: 'eth_pendingTransactions',
- outputFormatter: function(obj) { return obj; }
+ getter: 'eth_pendingTransactions'
})
]
});