Skip to main content


Contract: JBProjects

Interface: IJBProjects

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


function setTokenUriResolver(IJBTokenUriResolver _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 IJBProjects interface.
  • The function doesn't return anything.


  1. Store the new resolver.

    // Store the new resolver.
    tokenUriResolver = _newResolver;

    Internal references:

  2. Emit a SetTokenUriResolver event with the relevant parameters.

    emit SetTokenUriResolver(_newResolver, msg.sender);

    Event references: