@@ -94,7 +94,7 @@ contract EthscriptionERC721 is ERC721EthscriptionsUpgradeable {
9494 /// @notice Sync ownership for a specific token
9595 /// @param tokenId The token to sync
9696 /// @param ethscriptionId The ethscription ID for this token
97- function syncOwnership (uint256 tokenId , bytes32 ethscriptionId ) external {
97+ function syncOwnership (uint256 tokenId , bytes32 ethscriptionId ) external onlyFactory {
9898 // Check if token still exists in collection
9999 require (_tokenExists (tokenId), "Token does not exist " );
100100
@@ -110,29 +110,7 @@ contract EthscriptionERC721 is ERC721EthscriptionsUpgradeable {
110110 _transfer (recordedOwner, actualOwner, tokenId);
111111 }
112112 }
113-
114- /// @notice Batch sync ownership for multiple tokens
115- /// @param tokenIds Array of token IDs to sync
116- /// @param ethscriptionIds Array of corresponding ethscription IDs
117- function syncOwnershipBatch (uint256 [] calldata tokenIds , bytes32 [] calldata ethscriptionIds ) external {
118- require (tokenIds.length == ethscriptionIds.length , "Array length mismatch " );
119-
120- for (uint256 i = 0 ; i < tokenIds.length ; i++ ) {
121- uint256 tokenId = tokenIds[i];
122- bytes32 ethscriptionId = ethscriptionIds[i];
123-
124- // Skip non-existent tokens
125- if (! _tokenExists (tokenId)) continue ;
126-
127- address actualOwner = ethscriptions.ownerOf (ethscriptionId);
128- address recordedOwner = _ownerOf (tokenId);
129-
130- if (actualOwner != recordedOwner) {
131- _transfer (recordedOwner, actualOwner, tokenId);
132- }
133- }
134- }
135-
113+
136114 /// @notice Lock the collection (freeze it)
137115 function lockCollection () external onlyFactory {
138116 locked = true ;
0 commit comments