Skip to content

Commit

Permalink
fix(gnovom): optimize
Browse files Browse the repository at this point in the history
Co-authored-by: n0izn0iz <[email protected]>
  • Loading branch information
MikaelVallenet and n0izn0iz authored Oct 31, 2024
1 parent c5512bc commit ad1c8df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnovm/memfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func (mempkg *MemPackage) Validate() error {
pIndex := strings.Index(mempkg.Path, "/p/")
if pIndex > 0 && !strings.ContainsRune(mempkg.Path[:pIndex], '/') {
for _, file := range mempkg.Files {
if !strings.HasSuffix(file.Name, ".gno") {
continue
}
fset := token.NewFileSet()
astFile, err := parser.ParseFile(fset, file.Name, file.Body, parser.ImportsOnly)
if err != nil {
Expand Down

0 comments on commit ad1c8df

Please sign in to comment.