From 15304529f2eb64b1fe4dcb6578e507840576edb4 Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Thu, 17 Mar 2022 17:44:37 +0530 Subject: [PATCH] minor fixes --- internal/cli/attach.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/cli/attach.go b/internal/cli/attach.go index 4bf2f628bc..4daaf2cf17 100644 --- a/internal/cli/attach.go +++ b/internal/cli/attach.go @@ -41,10 +41,15 @@ func (c *AttachCommand) Run(args []string) int { return 0 } -// remoteConsole will connect to a remote geth instance, attaching a JavaScript +// remoteConsole will connect to a remote bor instance, attaching a JavaScript // console to it. func (c *AttachCommand) remoteConsole(args []string) error { // Attach to a remotely running geth instance and start the JavaScript console + + if len(args) < 1 { + args = append(args, "") + } + endpoint := args[0] path := node.DefaultDataDir() @@ -56,7 +61,7 @@ func (c *AttachCommand) remoteConsole(args []string) error { homeDir, _ := os.UserHomeDir() path = filepath.Join(homeDir, "/.bor/data") } - endpoint = fmt.Sprintf("%s/geth.ipc", path) + endpoint = fmt.Sprintf("%s/bor.ipc", path) } client, err := dialRPC(endpoint) if err != nil {