Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f460b021
Commit
f460b021
authored
Apr 12, 2016
by
Felix Lange
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2446 from karalabe/console-unlock-fix
cmd/utils: fix accounts merge error on console unlock
parents
1e9b504e
a1f1c404
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
jeth.go
cmd/utils/jeth.go
+2
-3
No files found.
cmd/utils/jeth.go
View file @
f460b021
...
@@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
...
@@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
if
call
.
Argument
(
1
)
.
IsUndefined
()
||
call
.
Argument
(
1
)
.
IsNull
()
{
if
call
.
Argument
(
1
)
.
IsUndefined
()
||
call
.
Argument
(
1
)
.
IsNull
()
{
fmt
.
Printf
(
"Unlock account %s
\n
"
,
account
)
fmt
.
Printf
(
"Unlock account %s
\n
"
,
account
)
if
input
,
err
:=
Stdin
.
PasswordPrompt
(
"Passphrase: "
);
err
!=
nil
{
if
input
,
err
:=
Stdin
.
PasswordPrompt
(
"Passphrase: "
);
err
!=
nil
{
return
otto
.
FalseValue
()
passwd
,
_
=
otto
.
ToValue
(
input
)
}
else
{
throwJSExeception
(
err
.
Error
())
throwJSExeception
(
err
.
Error
())
}
else
{
passwd
,
_
=
otto
.
ToValue
(
input
)
}
}
}
else
{
}
else
{
if
!
call
.
Argument
(
1
)
.
IsString
()
{
if
!
call
.
Argument
(
1
)
.
IsString
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment