Skip to content

Commit

Permalink
Good
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 30, 2024
1 parent c4c09ca commit 754ea7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/apps/chifra/pkg/base/types_wei.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func (w *Wei) Cmp(y *Wei) int {
}

func (w *Wei) MarshalText() (text []byte, err error) {
if w == nil {
return []byte("0"), nil
}
return (*big.Int)(w).MarshalText()
}

Expand Down
2 changes: 1 addition & 1 deletion src/apps/chifra/pkg/file/bounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func LatestFileInFolder(path string) (string, error) {
return filepath.Join(path, files[len(files)-1].Name()), nil
}

// EarliestFileInFolder returns the latest (alphabetically) file in the folder
// EarliestFileInFolder returns the first (alphabetically) file in the folder
func EarliestFileInFolder(path string) (string, error) {
files, err := os.ReadDir(path)
if err != nil {
Expand Down

0 comments on commit 754ea7b

Please sign in to comment.