cmd/abigen: redefine appp (#25851)

This commit is contained in:
Daniel Liu 2025-01-14 10:56:14 +08:00
parent 0389524da8
commit fde9a7e270

View file

@ -33,13 +33,6 @@ import (
"github.com/urfave/cli/v2"
)
var (
// Git SHA1 commit hash of the release (set via linker flags)
gitCommit = ""
app *cli.App
)
var (
// Flags needed by abigen
abiFlag = &cli.StringFlag{
@ -81,8 +74,9 @@ var (
}
)
var app = flags.NewApp("", "XDC ABI wrapper code generator")
func init() {
app = flags.NewApp(gitCommit, "ethereum checkpoint helper tool")
app.Name = "abigen"
app.Flags = []cli.Flag{
abiFlag,