Skip to content

Commit ff23e26

Browse files
authored
internal: fix personal.sign() (ethereum#21503)
1 parent 12d8570 commit ff23e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/bridge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ func (b *bridge) Sign(call jsre.Call) (goja.Value, error) {
306306
}
307307

308308
// Send the request to the backend and return
309-
sign, callable := goja.AssertFunction(getJeth(call.VM).Get("unlockAccount"))
309+
sign, callable := goja.AssertFunction(getJeth(call.VM).Get("sign"))
310310
if !callable {
311-
return nil, fmt.Errorf("jeth.unlockAccount is not callable")
311+
return nil, fmt.Errorf("jeth.sign is not callable")
312312
}
313313
return sign(goja.Null(), message, account, passwd)
314314
}

0 commit comments

Comments
 (0)