Skip to content

Commit

Permalink
Remove ReadFile util (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea authored Oct 18, 2024
1 parent c8f841d commit 5f80ef4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"regexp"
)
Expand Down Expand Up @@ -54,14 +53,6 @@ var (
urlPattern = regexp.MustCompile(`^(https?)://[^\s/$.?#].[^\s]*$`)
)

func ReadFile(path string) ([]byte, error) {
b, err := os.ReadFile(filepath.Clean(path))
if err != nil {
return nil, err
}
return b, nil
}

func EcdsaPrivateKeyToAddress(privateKey *ecdsa.PrivateKey) (gethcommon.Address, error) {
publicKey := privateKey.Public()
publicKeyECDSA, ok := publicKey.(*ecdsa.PublicKey)
Expand Down

0 comments on commit 5f80ef4

Please sign in to comment.