ERC1155MetadataNameSymbolFacet

ERC1155MetadataNameSymbolFacet

Provides a name and symbol getter, and allows the contract admin to update those.

updateNameAndSymbol

function updateNameAndSymbol(string _name, string _symbol) external

Update the name and symbol of the NFT contract. When run in a proxy -> diamond scenario this is restricted to the proxy only and will revert on the diamond.

Parameters

Name
Type
Description

_name

string

_symbol

string

name

function name() public view returns (string _name)

A descriptive name for a collection of NFTs in this contract

symbol

function symbol() public view returns (string _symbol)

An abbreviated name for NFTs in this contract

Was this helpful?