aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/personal_js.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/api/personal_js.go')
-rw-r--r--rpc/api/personal_js.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/rpc/api/personal_js.go b/rpc/api/personal_js.go
index f9fa60e78..ddd47f6a4 100644
--- a/rpc/api/personal_js.go
+++ b/rpc/api/personal_js.go
@@ -6,13 +6,6 @@ web3._extend({
methods:
[
new web3._extend.Method({
- name: 'listAccounts',
- call: 'personal_listAccounts',
- params: 0,
- inputFormatter: [],
- outputFormatter: function(obj) { return obj; }
- }),
- new web3._extend.Method({
name: 'newAccount',
call: 'personal_newAccount',
params: 1,
@@ -29,6 +22,11 @@ web3._extend({
],
properties:
[
+ new web3._extend.Property({
+ name: 'accounts',
+ getter: 'personal_listAccounts',
+ outputFormatter: function(obj) { return obj; }
+ })
]
});
`