diff --git a/contracts/NestedAsset.sol b/contracts/NestedAsset.sol index 6d53d0e5..96f9fe71 100644 --- a/contracts/NestedAsset.sol +++ b/contracts/NestedAsset.sol @@ -31,7 +31,7 @@ contract NestedAsset is ERC721Enumerable, Ownable { /// @dev Reverts the transaction if the caller is not the factory modifier onlyFactory() { - require(supportedFactories[_msgSender()], "NestedAsset: FORBIDDEN_NOT_FACTORY"); + require(supportedFactories[msg.sender], "NestedAsset: FORBIDDEN_NOT_FACTORY"); _; }