cmd/abigen: remove regression: ensure that either --abi or --combined-json are set.

This commit is contained in:
Jared Wasinger 2025-02-17 16:34:53 -08:00
parent 9eddba42ba
commit ab6643b775

View file

@ -97,6 +97,9 @@ func generate(c *cli.Context) error {
if c.String(pkgFlag.Name) == "" {
utils.Fatalf("No destination package specified (--pkg)")
}
if c.String(abiFlag.Name) == "" && c.String(jsonFlag.Name) == "" {
utils.Fatalf("Either contract ABI source (--abi) or combined-json (--combined-json) are required")
}
// If the entire solidity code was specified, build and bind based on that
var (
abis []string