Skip to content

Commit 3666da8

Browse files
authored
console: fix unlockAccount argument count check (#21081)
1 parent f3f1e59 commit 3666da8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎console/bridge.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (b *bridge) readPinAndReopenWallet(call jsre.Call) (goja.Value, error) {
229229
// original RPC method (saved in jeth.unlockAccount) with it to actually execute
230230
// the RPC call.
231231
func (b *bridge) UnlockAccount(call jsre.Call) (goja.Value, error) {
232-
if nArgs := len(call.Arguments); nArgs < 2 {
232+
if len(call.Arguments) < 1 {
233233
return nil, fmt.Errorf("usage: unlockAccount(account, [ password, duration ])")
234234
}
235235
// Make sure we have an account specified to unlock.

0 commit comments

Comments
 (0)