IERC1155MetadataNameSymbolFacet

IERC1155MetadataNameSymbolFacet

Manages name and symbol for ERC1155 compatible contracts. Note that this is outside of the 1155 spec.

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

The new name of the contract.

symbol

string

The new symbol of the contract. It is recommended to keep the length at 11 characters or less, all caps.

name

function name() external view returns (string _name)

A descriptive name for a collection of NFTs in this contract

symbol

function symbol() external view returns (string _symbol)

An abbreviated name for NFTs in this contract

Was this helpful?