good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
4811409e
Commit
4811409e
authored
Dec 18, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge pull request #2084 from bas-vk/rpcnilptr
console crash on nil ptr
parents
fd69d2b7
3c9a2c75
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/geth/js.go
+6
-5
6 additions, 5 deletions
cmd/geth/js.go
with
6 additions
and
5 deletions
cmd/geth/js.go
+
6
−
5
View file @
4811409e
...
@@ -341,11 +341,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
...
@@ -341,11 +341,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
// Override the unlockAccount and newAccount methods on the personal object since these require user interaction.
// Override the unlockAccount and newAccount methods on the personal object since these require user interaction.
// Assign the jeth.unlockAccount and jeth.newAccount in the jsre the original web3 callbacks. These will be called
// Assign the jeth.unlockAccount and jeth.newAccount in the jsre the original web3 callbacks. These will be called
// by the jeth.* methods after they got the password from the user and send the original web3 request to the backend.
// by the jeth.* methods after they got the password from the user and send the original web3 request to the backend.
persObj
:=
p
.
Object
()
if
persObj
:=
p
.
Object
()
;
persObj
!=
nil
{
// make sure the personal api is enabled over the interface
js
.
re
.
Run
(
`jeth.unlockAccount = personal.unlockAccount;`
)
js
.
re
.
Run
(
`jeth.unlockAccount = personal.unlockAccount;`
)
persObj
.
Set
(
"unlockAccount"
,
jeth
.
UnlockAccount
)
persObj
.
Set
(
"unlockAccount"
,
jeth
.
UnlockAccount
)
js
.
re
.
Run
(
`jeth.newAccount = personal.newAccount;`
)
js
.
re
.
Run
(
`jeth.newAccount = personal.newAccount;`
)
persObj
.
Set
(
"newAccount"
,
jeth
.
NewAccount
)
persObj
.
Set
(
"newAccount"
,
jeth
.
NewAccount
)
}
return
nil
return
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment