Skip to content

Commit ab6643b

Browse files
committed
cmd/abigen: remove regression: ensure that either --abi or --combined-json are set.
1 parent 9eddba4 commit ab6643b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/abigen/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ func generate(c *cli.Context) error {
9797
if c.String(pkgFlag.Name) == "" {
9898
utils.Fatalf("No destination package specified (--pkg)")
9999
}
100+
if c.String(abiFlag.Name) == "" && c.String(jsonFlag.Name) == "" {
101+
utils.Fatalf("Either contract ABI source (--abi) or combined-json (--combined-json) are required")
102+
}
100103
// If the entire solidity code was specified, build and bind based on that
101104
var (
102105
abis []string

0 commit comments

Comments
 (0)