Skip to content

Commit

Permalink
prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 4, 2024
1 parent 0c30e47 commit 1dc8bdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src-upgradeable/src/ERC721ContractMetadataUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 8 additions & 2 deletions src/test/MockTransferValidator.sol
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 1dc8bdd

Please sign in to comment.