Ethereum Boilerplate Questions

ohh thats weird.
i dont get any error at all in my terminal in vsc it just says this:

ompiled with warnings.

src/App.jsx
  Line 6:8:   'TokenPrice' is defined but never used      no-unused-vars
  Line 7:8:   'ERC20Balance' is defined but never used    no-unused-vars
  Line 8:8:   'ERC20Transfers' is defined but never used  no-unused-vars
  Line 9:8:   'DEX' is defined but never used             no-unused-vars
  Line 10:8:  'NFTBalance' is defined but never used      no-unused-vars
  Line 11:8:  'Wallet' is defined but never used          no-unused-vars

src/components/Chains/Chains.jsx
  Line 4:10:  'AvaxLogo' is defined but never used     no-unused-vars
  Line 4:20:  'PolygonLogo' is defined but never used  no-unused-vars
  Line 4:33:  'BSCLogo' is defined but never used      no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.```

but in the browser console i get this error in both the working and not working version

index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DomWrapper which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
at div
at DomWrapper (http://localhost:3000/static/js/vendors~main.chunk.js:285616:94)
at http://localhost:3000/static/js/vendors~main.chunk.js:285331:32
at Mask (http://localhost:3000/static/js/vendors~main.chunk.js:275253:25)
at div
at Dialog (http://localhost:3000/static/js/vendors~main.chunk.js:275311:32)
at http://localhost:3000/static/js/vendors~main.chunk.js:317072:25
at PortalWrapper (http://localhost:3000/static/js/vendors~main.chunk.js:317185:94)
at DialogWrap (http://localhost:3000/static/js/vendors~main.chunk.js:275529:23)
at Modal (http://localhost:3000/static/js/vendors~main.chunk.js:120182:75)
at Account (http://localhost:3000/static/js/main.chunk.js:447:71)
at div
at div
at Router (http://localhost:3000/static/js/vendors~main.chunk.js:358151:30)
at BrowserRouter (http://localhost:3000/static/js/vendors~main.chunk.js:357772:35)
at div
at App (http://localhost:3000/static/js/main.chunk.js:171:5)
at MoralisProvider (http://localhost:3000/static/js/vendors~main.chunk.js:355951:21)
at Application

@Yomoo
I just uploaded the whole project to my GitHub maybe that helps with finding the error. the version on the GitHub working for me but then again as soon as I remove those 6 imports mentioned above it doesnā€™t work. https://github.com/Dressi123/boilerplateeth

You can make your own tests. Try to disable them one by one and check the conflicts. Thank you :raised_hands:

anybody knows how to solve these problems?

I think he is looking for a slippage changer like this
image

Hey @Mike

There is no search bar currently. Itā€™ll be added after the boilerplate update

Take a look at this topic. There is info about adding slippage and custom tokens

Hi!, IĀ“m using the Explore market function in the boilerplate, but the call to the contract that has the collection, example Doodles. but the fetch is always of the first 10 assets.

I would like to progressively fetch tokens in calls of 20 or 50 assets to have a button of (show more assets), every click in the (show more assets) button should fetch the next 20 or 50 nfts of the collection.

ThereĀ“s a funcion that can do it?

I see the same issue on my local install as well as the Morales demo (https://ethereum-boilerplate.github.io/ethereum-boilerplate). Have you gotten anywhere with this? I havenā€™t dug much into the code yet, still feeling around. Was this functionality not fully deployed in the Boilerplate?

The real answer is this package is not maintained and they left it up the the scaffold-eth team. Check out https://docs.scaffoldeth.io/scaffold-eth/challenges/simple-nft and https://docs.scaffoldeth.io/scaffold-eth/examples-branches/nfts/nifty-viewer . Just use your Moralis info in hardhat and the frontend instead of Infura.

Change line 12 {overflowedIndicator} in MenuItems.jsx :slight_smile:

1 Like

My view collection isnā€™t responding, please help

when I click ā€œview collectionā€ from the explore market, it not loading, just blank
I need help please

Did you already setup the env file with your moralis server credentials? , Show me a console log when you do the click in the ā€œview collectionā€ link.

I found a function in the moralis API for do a fetch with a limit of assets and filters called searchNFTs

Iā€™ts an API function that can fast fetch a collection from a contract, but it would be nice to have the option of filter by ids.

const options = { q: ā€œPancakeā€, chain: ā€œbscā€, filter: ā€œnameā€ };
const NFTs = await Moralis.Web3API.token.searchNFTs(options);

please i have cloned the boilerplate to my cpanel my issue is how to run the yarn install command on cpanel and run the app, please help

Here is what I got in the console

Thank you @dmarcicontent, I fixed it already
My server was sleeping already, I revived it and its up and good

Thanks for your support

IĀ“m glad to read that!

Iā€™m not so sure about cpanel, but you should try to build a CI/CD pipeline that will not only install the dependencies, build your project which then you can serve your app :raised_hands: