Skip to content

Commit

Permalink
fix: gnodevé
Browse files Browse the repository at this point in the history
Signed-off-by: Norman <norman@samourai.coop>
  • Loading branch information
n0izn0iz committed Feb 3, 2025
1 parent 52bcc43 commit 31b92be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gnodev/pkg/dev/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (pm PackagesMap) toList() packages.PkgList {
func (pm PackagesMap) Load(fee std.Fee, start time.Time) ([]gnoland.TxWithMetadata, error) {
pkgs := pm.toList()

sorted, err := pkgs.Sort()
sorted, err := pkgs.Sort(true)
if err != nil {
return nil, fmt.Errorf("unable to sort pkgs: %w", err)
}
Expand All @@ -142,7 +142,7 @@ func (pm PackagesMap) Load(fee std.Fee, start time.Time) ([]gnoland.TxWithMetada
}

// Open files in directory as MemPackage.
memPkg := gnolang.MustReadMemPackage(modPkg.Dir, modPkg.ImportPath)
memPkg := gnolang.MustReadMemPackage(modPkg.Dir, modPkg.ImportPath, nil)
if err := memPkg.Validate(); err != nil {
return nil, fmt.Errorf("invalid package: %w", err)
}
Expand Down

0 comments on commit 31b92be

Please sign in to comment.