mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
cmd/abigen: remove regression: ensure that either --abi or --combined-json are set.
This commit is contained in:
parent
9eddba42ba
commit
ab6643b775
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue