Update cmd/abigen/main.go

This commit is contained in:
jwasinger 2025-01-20 03:55:48 +08:00 committed by GitHub
parent 79e091c61f
commit a835a03f2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,10 +101,6 @@ func abigen(c *cli.Context) error {
if c.String(abiFlag.Name) == "" && c.String(jsonFlag.Name) == "" { if c.String(abiFlag.Name) == "" && c.String(jsonFlag.Name) == "" {
utils.Fatalf("Either contract ABI source (--abi) or combined-json (--combined-json) are required") utils.Fatalf("Either contract ABI source (--abi) or combined-json (--combined-json) are required")
} }
if c.String(abiFlag.Name) != "" && c.String(jsonFlag.Name) != "" {
utils.Fatalf("contract ABI source (--abi) and combined-json (--combined-json) are mutually-exclusive")
}
var lang bind.Lang var lang bind.Lang
switch c.String(langFlag.Name) { switch c.String(langFlag.Name) {
case "go": case "go":