setTokenUriResolver

Sets the address of the resolver used to retrieve the tokenURI of projects.

Definition

function setTokenUriResolver(ISNWTokenUriResolver _newResolver) external override onlyOwner { ... }

Arguments:

  • _newResolver is the address of the new resolver.

Through the onlyOwner modifier, this function can only be accessed by the address that owns this contract.

The function overrides a function definition from the ISNWProjects interface. The function doesn't return anything.

Body

/// Store the new resolver.
tokenUriResolver = _newResolver;

Internal references:

  • tokenUriResolver

Emit a SetTokenUriResolver event with the relevant parameters.

emit SetTokenUriResolver(_newResolver, msg.sender);

Event references:

  • SetTokenUriResolver

Last updated

SnowconeDAO