fieldFromString
Function: fieldFromString()
function fieldFromString(storage: string): Field
Defined in: packages/nft/src/interfaces/encoding.ts:28
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.
Parameters
storage
string
The string representation of the Field
.
Returns
Field
The reconstructed Field
element.
Throws
Will throw an error if the input string does not correspond to exactly one Field
.
Updated 10 days ago