Skip to content

Commit

Permalink
internal: fix personal.sign() (#21503)
Browse files Browse the repository at this point in the history
  • Loading branch information
de1acr0ix committed Sep 1, 2020
1 parent 12d8570 commit ff23e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ func (b *bridge) Sign(call jsre.Call) (goja.Value, error) {
}

// 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 {
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)
}
Expand Down

0 comments on commit ff23e26

Please sign in to comment.