Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abigen failed with latest dev version #6287

Closed
fenghaojiang opened this issue Dec 12, 2022 · 2 comments · Fixed by #6694
Closed

abigen failed with latest dev version #6287

fenghaojiang opened this issue Dec 12, 2022 · 2 comments · Fixed by #6694

Comments

@fenghaojiang
Copy link
Contributor

fenghaojiang commented Dec 12, 2022

System information

abigen version:

abigen version 2.31.0-dev

OS & Version: Windows & MacOS

Commit hash :

abigen --abi=./abis/erc20/erc20.abi --pkg=erc20 --out=./abis/erc20/erc20.go

Expected behaviour

normal output an erc20.go file

Actual behaviour

panic: invalid argument, not cli.Flag type: cli.StringFlag

goroutine 1 [running]:
github.com/ledgerwatch/erigon/cmd/utils.CheckExclusive(0x12f0a60?, {0xc000493900, 0x4, 0xfffffffe00000000?})
        G:/github_repo/erigon/cmd/utils/flags.go:1387 +0x55b
main.abigen(0xc000403b80?)
        G:/github_repo/erigon/cmd/abigen/main.go:122 +0x10e
github.com/urfave/cli/v2.(*Command).Run(0xc000403b80, 0xc0016c3400, {0xc000088040, 0x4, 0x4})
        C:/Users/jiang/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xaab
github.com/urfave/cli/v2.(*App).RunContext(0xc0001f8f00, {0x1979cc0?, 0xc000042110}, {0xc000088040, 0x4, 0x4})
        C:/Users/jiang/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:329 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
        C:/Users/jiang/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:306
main.main()
        G:/github_repo/erigon/cmd/abigen/main.go:272 +0x7b

Steps to reproduce the behaviour

Backtrace

[backtrace]
@skillful-alex
Copy link
Contributor

Related issue urfave/cli#925

@fenghaojiang
Copy link
Contributor Author

Related issue urfave/cli#925

Thank you. I will have a check and see if the problem solved. Really appreciated for you comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants