diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-10 17:29:52 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-11 20:01:41 +0800 |
commit | bd38428f33b127e9c60d26127695e50c55798fcd (patch) | |
tree | 9bb838822fc3d1b28775f57223a30a243d4df9f2 /rpc/api/personal_js.go | |
parent | 87b62f75a7b9c15c17f3352f1b50ad88966e7070 (diff) | |
download | dexon-bd38428f33b127e9c60d26127695e50c55798fcd.tar.gz dexon-bd38428f33b127e9c60d26127695e50c55798fcd.tar.zst dexon-bd38428f33b127e9c60d26127695e50c55798fcd.zip |
cleanup of javascript API
Diffstat (limited to 'rpc/api/personal_js.go')
-rw-r--r-- | rpc/api/personal_js.go | 12 |
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; } + }) ] }); ` |