From ff23e265cd2ff13f33e145071b317fc25f0a2b23 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Tue, 1 Sep 2020 16:23:04 +0800 Subject: [PATCH] internal: fix personal.sign() (#21503) --- console/bridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/bridge.go b/console/bridge.go index 995448afb..9303496b2 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -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) }