From 11e82672fe316c678a64b9cbcb77562b3f4ce03e Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Wed, 8 Oct 2025 12:25:59 +0800 Subject: [PATCH] cmd: fix lint error mirror (#1575) --- cmd/XDC/consolecmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/XDC/consolecmd.go b/cmd/XDC/consolecmd.go index b14b81601b..78a3752bef 100644 --- a/cmd/XDC/consolecmd.go +++ b/cmd/XDC/consolecmd.go @@ -167,10 +167,10 @@ func remoteConsole(ctx *cli.Context) error { func ephemeralConsole(ctx *cli.Context) error { var b strings.Builder for _, file := range ctx.Args().Slice() { - b.Write([]byte(fmt.Sprintf("loadScript('%s');", file))) + b.WriteString(fmt.Sprintf("loadScript('%s');", file)) } utils.Fatalf(`The "js" command is deprecated. Please use the following instead: -geth --exec "%s" console`, b.String()) +XDC --exec "%s" console`, b.String()) return nil }