Merge branch 'ethereum:master' into gethintegration

This commit is contained in:
Chen Kai 2025-01-20 16:11:26 +08:00 committed by GitHub
commit aef005a6a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) == "" && c.String(jsonFlag.Name) == "" {
utils.Fatalf("Either contract ABI source (--abi) or combined-json (--combined-json) are required")
}
var lang bind.Lang
switch c.String(langFlag.Name) {
case "go":