Home > @infiniteobjects/data-types > TokenMetadata > setAttribute
Helper function to upsert attributes. If it finds the attribute it will update the value, if not it will create it
Signature:
setAttribute(traitType: string, value: string): void;
| Parameter | Type | Description |
|---|---|---|
| traitType | string | |
| value | string |
Returns:
void