From 1dc8bdd44bb5a042ab17a7dd6acc5052560fb6ac Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 4 Apr 2024 11:10:54 -0700 Subject: [PATCH] prettier:fix --- .../src/ERC721ContractMetadataUpgradeable.sol | 4 +++- src/test/MockTransferValidator.sol | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src-upgradeable/src/ERC721ContractMetadataUpgradeable.sol b/src-upgradeable/src/ERC721ContractMetadataUpgradeable.sol index 7be6413b..37553264 100644 --- a/src-upgradeable/src/ERC721ContractMetadataUpgradeable.sol +++ b/src-upgradeable/src/ERC721ContractMetadataUpgradeable.sol @@ -328,7 +328,9 @@ contract ERC721ContractMetadataUpgradeable is ) internal virtual override { if (from != address(0) && to != address(0)) { // Call the transfer validator if one is set. - address transferValidator = ERC721ContractMetadataStorage.layout()._transferValidator; + address transferValidator = ERC721ContractMetadataStorage + .layout() + ._transferValidator; if (transferValidator != address(0)) { ITransferValidator721(transferValidator).validateTransfer( msg.sender, diff --git a/src/test/MockTransferValidator.sol b/src/test/MockTransferValidator.sol index b5f4dcbd..68536897 100644 --- a/src/test/MockTransferValidator.sol +++ b/src/test/MockTransferValidator.sol @@ -1,9 +1,15 @@ // SPDX-License-Identifier: Unlicense pragma solidity 0.8.17; -import { ITransferValidator721, ITransferValidator1155 } from "../interfaces/ITransferValidator.sol"; +import { + ITransferValidator721, + ITransferValidator1155 +} from "../interfaces/ITransferValidator.sol"; -contract MockTransferValidator is ITransferValidator721, ITransferValidator1155 { +contract MockTransferValidator is + ITransferValidator721, + ITransferValidator1155 +{ bool internal _revertOnValidate; constructor(bool revertOnValidate) {