mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
abigen: make command abi flag mandatory
This commit is contained in:
parent
ea31bd9faf
commit
7c763c5e54
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ func abigen(c *cli.Context) error {
|
|||
if c.String(pkgFlag.Name) == "" {
|
||||
utils.Fatalf("No destination package specified (--pkg)")
|
||||
}
|
||||
if c.String(abiFlag.Name) == "" {
|
||||
utils.Fatalf("No contract ABI source specified (--abi)")
|
||||
}
|
||||
var lang bind.Lang
|
||||
switch c.String(langFlag.Name) {
|
||||
case "go":
|
||||
|
|
|
|||
Loading…
Reference in a new issue