setTokenUriResolver
Contract: JBProjects
Interface: IJBProjects
- Step by step
- Code
- Events
- Bug bounty
Sets the address of the resolver used to retrieve the tokenURI of projects.
Definitionβ
function setTokenUriResolver(IJBTokenUriResolver _newResolver) external override onlyOwner { ... }
- Arguments:
_newResolveris the address of the new resolver.
- Through the
onlyOwnermodifier, this function can only be accessed by the address that owns this contract. - The function overrides a function definition from the
IJBProjectsinterface. - The function doesn't return anything.
Bodyβ
-
Store the new resolver.
// Store the new resolver.
tokenUriResolver = _newResolver;Internal references:
-
Emit a
SetTokenUriResolverevent with the relevant parameters.emit SetTokenUriResolver(_newResolver, msg.sender);Event references:
/**
@notice
Sets the address of the resolver used to retrieve the tokenURI of projects.
@param _newResolver The address of the new resolver.
*/
function setTokenUriResolver(IJBTokenUriResolver _newResolver) external override onlyOwner {
// Store the new resolver.
tokenUriResolver = _newResolver;
emit SetTokenUriResolver(_newResolver, msg.sender);
}
| Name | Data |
|---|---|
SetTokenUriResolver |
|
| Category | Description | Reward |
|---|---|---|
| Optimization | Help make this operation more efficient. | 0.5ETH |
| Low severity | Identify a vulnerability in this operation that could lead to an inconvenience for a user of the protocol or for a protocol developer. | 1ETH |
| High severity | Identify a vulnerability in this operation that could lead to data corruption or loss of funds. | 5+ETH |