Set by Name
Set by Name
This script returns a Set struct for the given name, if it exists.
Parameters:
- setName: The name of the Set.
Returns: Golazos.SetData
A set struct.
import Golazos from 0xGOLAZOSADDRESS
pub fun main(setName: String): Golazos.SetData? {
return Golazos.getSetDataByName(name: setName)
}