aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/personal_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 15:42:14 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commit5f8e5a487588bab49fb3c9321fd8903132426c47 (patch)
treeef6fe23d6bebe7f51bb29a310d106d68654ee632 /rpc/api/personal_js.go
parentcc9ae399338557b6671e8fc83bb696c5ddb068fe (diff)
downloadgo-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar.gz
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar.bz2
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar.lz
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar.xz
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.tar.zst
go-tangerine-5f8e5a487588bab49fb3c9321fd8903132426c47.zip
upgrade web3.js with _extend support
Diffstat (limited to 'rpc/api/personal_js.go')
-rw-r--r--rpc/api/personal_js.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/rpc/api/personal_js.go b/rpc/api/personal_js.go
index 7fd9a2dea..f9fa60e78 100644
--- a/rpc/api/personal_js.go
+++ b/rpc/api/personal_js.go
@@ -1,30 +1,30 @@
package api
const Personal_JS = `
-web3.extend({
+web3._extend({
property: 'personal',
methods:
[
- new web3.extend.Method({
+ new web3._extend.Method({
name: 'listAccounts',
call: 'personal_listAccounts',
params: 0,
inputFormatter: [],
outputFormatter: function(obj) { return obj; }
}),
- new web3.extend.Method({
+ new web3._extend.Method({
name: 'newAccount',
call: 'personal_newAccount',
params: 1,
- inputFormatter: [web3.extend.formatters.formatInputString],
- outputFormatter: web3.extend.formatters.formatOutputString
+ inputFormatter: [web3._extend.formatters.formatInputString],
+ outputFormatter: web3._extend.formatters.formatOutputString
}),
- new web3.extend.Method({
+ new web3._extend.Method({
name: 'unlockAccount',
call: 'personal_unlockAccount',
params: 3,
- inputFormatter: [web3.extend.formatters.formatInputString,web3.extend.formatters.formatInputString,web3.extend.formatters.formatInputInt],
- outputFormatter: web3.extend.formatters.formatOutputBool
+ inputFormatter: [web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputInt],
+ outputFormatter: web3._extend.formatters.formatOutputBool
})
],
properties: