Skip to content

Commit

Permalink
Fix linter review
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
lpopo0856 committed Dec 13, 2024
1 parent 2eb6555 commit abf3af4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions contracts/SeriesIndexer.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/Ownable.sol" as Ownable;

contract SeriesIndexer is Ownable {
contract SeriesIndexer is Ownable.Ownable {
// Counter
uint256 private nextSeriesID = 1;
uint256 private nextArtistID = 1;
Expand All @@ -30,7 +30,7 @@ contract SeriesIndexer is Ownable {
mapping(uint256 => mapping(uint256 => uint256)) private artistPendingCoArtistRequestIndex;// artistID => SeriesID => Index

// Events
event ArtistAddressUpdated(uint256 indexed artistID, address oldAddress, address newAddress);
event ArtistAddressUpdated(uint256 indexed artistID, address indexed oldAddress, address indexed newAddress);
event SeriesIndexed(
uint256 indexed seriesID,
uint256[] artistIDs,
Expand Down Expand Up @@ -178,28 +178,28 @@ contract SeriesIndexer is Ownable {
// ------------------------

function addSeries(
string memory metadata,
string memory tokenIDsMapCID
string calldata metadata,
string calldata tokenIDsMapCID
) external returns (uint256) {
address[] memory artistAddrs = new address[](1);
artistAddrs[0] = msg.sender;
return _createSeries(artistAddrs, metadata, tokenIDsMapCID);
}

function ownerAddSeries(
address[] memory artistAddrs,
string memory metadata,
string memory tokenIDsMapCID
address[] calldata artistAddrs,
string calldata metadata,
string calldata tokenIDsMapCID
) external onlyOwner returns (uint256) {
require(artistAddrs.length > 0, "No artists");
_checkArtistsNotRevoked(artistAddrs);
return _createSeries(artistAddrs, metadata, tokenIDsMapCID);
}

function ownerBatchAddSeries(
address[][] memory artistsArray,
string[] memory metadatas,
string[] memory tokenIDsMapCIDs
address[][] calldata artistsArray,
string[] calldata metadatas,
string[] calldata tokenIDsMapCIDs
) external onlyOwner returns (uint256[] memory) {
uint256 length = artistsArray.length;
require(
Expand All @@ -221,8 +221,8 @@ contract SeriesIndexer is Ownable {

function updateSeries(
uint256 seriesID,
string memory metadata,
string memory tokenIDsMapCID
string calldata metadata,
string calldata tokenIDsMapCID
) external seriesExists(seriesID) onlyOwnerOrArtist(seriesID) {
_checkMetadataAndTokenCID(metadata, tokenIDsMapCID);

Expand Down Expand Up @@ -254,7 +254,7 @@ contract SeriesIndexer is Ownable {

function ownerUpdateSeriesArtists(
uint256 seriesID,
address[] memory artistAddrs
address[] calldata artistAddrs
) external seriesExists(seriesID) onlyOwner {
require(ownerCanModifySeries(seriesID), "Owner rights revoked by all artists");
_checkArtistsNotRevoked(artistAddrs);
Expand Down

0 comments on commit abf3af4

Please sign in to comment.