misc: formatting reverted

This commit is contained in:
vicnaum
2024-02-01 15:03:31 +01:00
parent a3c349435f
commit eff426620b

View File

@@ -155,6 +155,21 @@ abstract contract LensProfiles is LensBaseERC721, ERC2981CollectionRoyalties, IL
ValidationLib.validateCallerIsGovernance();
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override whenNotPaused {
_beforeTokenTransferProfile(from, to, tokenId, false);
}
function _beforeTokenTransferWithData(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal override whenNotPaused {
bool keepProfileDelegates = abi.decode(data, (bool));
_beforeTokenTransferProfile(from, to, tokenId, keepProfileDelegates);
}
function _beforeTokenTransferProfile(
address from,
address to,
@@ -171,19 +186,4 @@ abstract contract LensProfiles is LensBaseERC721, ERC2981CollectionRoyalties, IL
}
super._beforeTokenTransfer(from, to, tokenId);
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override whenNotPaused {
_beforeTokenTransferProfile(from, to, tokenId, false);
}
function _beforeTokenTransferWithData(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal override whenNotPaused {
bool keepProfileDelegates = abi.decode(data, (bool));
_beforeTokenTransferProfile(from, to, tokenId, keepProfileDelegates);
}
}