Skip to content

Commit

Permalink
Removes the StrToFelt utility
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed Dec 13, 2024
1 parent af08361 commit 3900aee
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions utils/Felt.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ func HexToFelt(hex string) (*felt.Felt, error) {
return new(felt.Felt).SetString(hex)
}

// StrToFelt generates a felt.Felt from a string representation containing ASCII characters, not hex values.
//
// Parameters:
// - str: The string to convert to a felt.Felt
// Returns:
// - *felt.Felt: a felt.Felt representing the converted value
func StrToFelt(str string) *felt.Felt {
return new(felt.Felt).SetBytes([]byte(str))
}

// HexArrToFelt converts an array of hexadecimal strings to an array of felt objects.
//
// The function iterates over each element in the hexArr array and calls the HexToFelt function to convert each hexadecimal value to a felt object.
Expand Down

0 comments on commit 3900aee

Please sign in to comment.