From 3900aee742dcd6a38135fc926b41e3ce69a97158 Mon Sep 17 00:00:00 2001 From: thiagodeev Date: Fri, 13 Dec 2024 01:02:59 -0300 Subject: [PATCH] Removes the StrToFelt utility --- utils/Felt.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/utils/Felt.go b/utils/Felt.go index f4f5a34a..37343c10 100644 --- a/utils/Felt.go +++ b/utils/Felt.go @@ -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.