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
ff23e265
Unverified
Commit
ff23e265
authored
Sep 1, 2020
by
Hanjiang Yu
Committed by
GitHub
Sep 1, 2020
Browse files
Options
Downloads
Patches
Plain Diff
internal: fix personal.sign() (#21503)
parent
12d85703
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
console/bridge.go
+2
-2
2 additions, 2 deletions
console/bridge.go
with
2 additions
and
2 deletions
console/bridge.go
+
2
−
2
View file @
ff23e265
...
@@ -306,9 +306,9 @@ func (b *bridge) Sign(call jsre.Call) (goja.Value, error) {
...
@@ -306,9 +306,9 @@ func (b *bridge) Sign(call jsre.Call) (goja.Value, error) {
}
}
// Send the request to the backend and return
// Send the request to the backend and return
sign
,
callable
:=
goja
.
AssertFunction
(
getJeth
(
call
.
VM
)
.
Get
(
"
unlockAccount
"
))
sign
,
callable
:=
goja
.
AssertFunction
(
getJeth
(
call
.
VM
)
.
Get
(
"
sign
"
))
if
!
callable
{
if
!
callable
{
return
nil
,
fmt
.
Errorf
(
"jeth.
unlockAccount
is not callable"
)
return
nil
,
fmt
.
Errorf
(
"jeth.
sign
is not callable"
)
}
}
return
sign
(
goja
.
Null
(),
message
,
account
,
passwd
)
return
sign
(
goja
.
Null
(),
message
,
account
,
passwd
)
}
}
...
...
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