diff --git a/packages/integration-tests/src/playbook/contracts/MyNFT.sol b/packages/integration-tests/src/playbook/contracts/MyNFT.sol index 9c67c02646..3ad305335d 100644 --- a/packages/integration-tests/src/playbook/contracts/MyNFT.sol +++ b/packages/integration-tests/src/playbook/contracts/MyNFT.sol @@ -7,22 +7,18 @@ import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract MyNFT is ERC721URIStorage, Ownable { -using Counters for Counters.Counter; -Counters.Counter private _tokenIds; + using Counters for Counters.Counter; + Counters.Counter private _tokenIds; -constructor() ERC721("MyNFT", "NFT") {} + constructor() ERC721("MyNFT", "NFT") {} -function mintNFT(address recipient, string memory tokenURI) -public -onlyOwner -returns (uint256) -{ -_tokenIds.increment(); + function mintNFT(address recipient, string memory tokenURI) public onlyOwner returns (uint256) { + _tokenIds.increment(); -uint256 newItemId = _tokenIds.current(); -_mint(recipient, newItemId); -_setTokenURI(newItemId, tokenURI); + uint256 newItemId = _tokenIds.current(); + _mint(recipient, newItemId); + _setTokenURI(newItemId, tokenURI); -return newItemId; + return newItemId; + } } -} \ No newline at end of file