Skip to content

Commit

Permalink
fix: L-01 Ownership of Land and PolygonLand
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Adjimann committed Jul 10, 2024
1 parent 3911872 commit 5bbcc5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/land/contracts/common/LandBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import {LandBaseToken} from "./LandBaseToken.sol";
/// @author The Sandbox
/// @custom:security-contact [email protected]
/// @notice LAND contract
/// @dev LAND contract implements ERC721, quad and marketplace filtering functionalities
/// @dev LAND contract implements ERC721, quads, metadata, royalties and marketplace filtering functionalities.
/// @dev The contract also implements EIP173 because it is needed by some marketplaces. The owner() doesn't have
/// @dev any privileged roles within the contract. It can be is set by the admin to any value.
abstract contract LandBase is
LandBaseToken,
Initializable,
Expand Down Expand Up @@ -98,6 +100,9 @@ abstract contract LandBase is

/// @notice Set the address of the new owner of the contract
/// @param newOwner address of new owner
/// @dev This owner doesn't have any privileged role within this contract
/// @dev It is set by the admin to comply with EIP173 which is needed by some marketplaces
/// @dev Even when set to address(0) ownership is never permanently renounced the admin can always set any value
function transferOwnership(address newOwner) external onlyAdmin {
_transferOwnership(newOwner);
}
Expand Down

1 comment on commit 5bbcc5e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/land/contracts
   Land.sol100%100%100%100%
   LandMetadataRegistry.sol100%100%100%100%
   PolygonLand.sol100%100%100%100%
packages/land/contracts/common
   ERC721BaseToken.sol100%100%100%100%
   LandBase.sol100%100%100%100%
   LandBaseToken.sol100%100%100%100%
   OperatorFiltererUpgradeable.sol100%100%100%100%
   WithAdmin.sol100%100%100%100%
   WithMetadataRegistry.sol100%100%100%100%
   WithOwner.sol100%100%100%100%
   WithRoyalties.sol100%100%100%100%
   WithSuperOperators.sol100%100%100%100%
packages/land/contracts/interfaces
   IERC173.sol100%100%100%100%
   IERC721BatchOps.sol100%100%100%100%
   IERC721MandatoryTokenReceiver.sol100%100%100%100%
   IErrors.sol100%100%100%100%
   ILandMetadataRegistry.sol100%100%100%100%
   ILandToken.sol100%100%100%100%
   IOperatorFilterRegistry.sol100%100%100%100%
packages/land/contracts/mainnet
   LandStorageMixin.sol100%100%100%100%
packages/land/contracts/polygon
   ERC2771Handler.sol100%100%100%100%
   PolygonLandStorageMixin.sol100%100%100%100%
packages/land/contracts/registry
   LandMetadataBase.sol100%100%100%100%

Please sign in to comment.