Skip to content

Commit

Permalink
Check if ABI present in spell artifacts (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt authored Jul 19, 2024
1 parent ff5fb1a commit 9f07a55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/geth/spellcmd/spellcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 9f07a55

Please sign in to comment.