&:empty
  display none
!important, it can't have space on HTML
✌️
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/[email protected]/token/ERC721/IERC721.sol"; | |
| import "@openzeppelin/[email protected]/access/Ownable.sol"; | |
| import "@openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20Permit.sol"; | |
| import "@openzeppelin/[email protected]/token/ERC721/utils/ERC721Holder.sol"; | |
| contract FractionalizedNFT is ERC20, Ownable, ERC20Permit, ERC721Holder { | 
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "hardhat/console.sol"; | |
| contract NFTMarketplace is ERC721URIStorage { | 
| const eventFilterv5WithPagination = (contractAddress, erc20abi, _provider, numberOfResponses) => { | |
| // creating the interface of the ABI | |
| const iface = new ethers.utils.Interface(erc20abi.abi); | |
| // intialize array for the logs | |
| let logs = []; | |
| // get latest block number | |
| const latest = await provider.getBlockNumber(); | |
| // intialize a counter for which block we're scraping starting at the most recent block | |
| let blockNumberIndex = latest; | 
| function PrivateRoute ({component: Component, authenticated, ...rest}) { | |
| return ( | |
| <Route | |
| {...rest} | |
| render={(props) => authenticated === true | |
| ? <Component {...props} /> | |
| : <Redirect to={{pathname: '/login', state: {from: props.location}}} />} | |
| /> | |
| ) | |
| } | 
| RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
| npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
| Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |