-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac82253
commit ccfb2f5
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,17 @@ contract ZetaXP is ERC721Upgradeable, OwnableUpgradeable { | |
return "1.0.0"; | ||
} | ||
|
||
// Internal function to set the signer address | ||
function setSignerAddress(address signerAddress_) external onlyOwner { | ||
if (signerAddress_ == address(0)) revert InvalidAddress(); | ||
signerAddress = signerAddress_; | ||
} | ||
|
||
// Set the base URI for tokens | ||
function setBaseURI(string calldata _uri) external onlyOwner { | ||
Check warning Code scanning / Slither Conformance to Solidity naming conventions Warning
Parameter ZetaXP.setBaseURI(string)._uri is not in mixedCase
|
||
baseTokenURI = _uri; | ||
} | ||
|
||
// The following functions are overrides required by Solidity. | ||
function tokenURI(uint256 tokenId) public view override(ERC721Upgradeable) returns (string memory) { | ||
_requireMinted(tokenId); | ||
|
@@ -157,11 +168,6 @@ contract ZetaXP is ERC721Upgradeable, OwnableUpgradeable { | |
emit NFTUpdated(owner, tokenId, updateData.tag); | ||
} | ||
|
||
// Set the base URI for tokens | ||
function setBaseURI(string calldata _uri) external onlyOwner { | ||
baseTokenURI = _uri; | ||
} | ||
|
||
function _transfer(address from, address to, uint256 tokenId) internal override { | ||
revert TransferNotAllowed(); | ||
} | ||
|