diff --git a/cmd/geth/spellcmd/spellcmd.go b/cmd/geth/spellcmd/spellcmd.go index 1b4f6af19..ecd444846 100644 --- a/cmd/geth/spellcmd/spellcmd.go +++ b/cmd/geth/spellcmd/spellcmd.go @@ -451,8 +451,10 @@ func resolveEventsInArtifactsFolder(ctx *cli.Context) (artifactEvents, error) { return err } - for _, evnt := range artifact.Abi.Events { - events = append(events, evnt) + if artifact.Abi != nil { + for _, evnt := range artifact.Abi.Events { + events = append(events, evnt) + } } return nil })