Skip to main content

fieldFromString

Callable

  • fieldFromString(storage: string): Field

  • Reconstructs a Field element from its string representation. This function is essential for deserializing strings back into Field elements, which can then be used within the smart contract logic.

    @throws

    Will throw an error if the input string does not correspond to exactly one Field.


    Parameters

    • storage: string

      The string representation of the Field.

    Returns Field

    The reconstructed Field element.