Cloning OpenSea NFT Boilerplate Questions

Hey, I have a problem when trying to sell an NFT
MetaMask - RPC Error: TxGasUtil - Trying to call a function on a non-contract address
I deployed the contract and included the abi and the contract address in the DappProvider.

So after messing around I may have come up with a possible solution for adding a royalty split in the sale of assets on the marketplaceBoilerplate.sol. Im just going to post the new contract:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol";
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol";

contract marketPlace is ReentrancyGuard {
    using Counters for Counters.Counter;
    Counters.Counter private _itemIds;
    Counters.Counter private _itemsSold;
    
     address public owner;
     address public royalty;
     
     constructor() {
         owner = msg.sender;
         royalty = {ENTER ROYALTIES ADDRESS};
     }
     
     struct MarketItem {
         uint itemId;
         address nftContract;
         uint256 tokenId;
         address payable seller;
         address payable owner;
         address payable royalty;
         uint256 price;
         bool sold;
     }
     
     mapping(uint256 => MarketItem) private idToMarketItem;
     
     event MarketItemCreated (
        uint indexed itemId,
        address indexed nftContract,
        uint256 indexed tokenId,
        address seller,
        address owner,
        address royalty,
        uint256 price,
        bool sold
     );
     
     event MarketItemSold (
         uint indexed itemId,
         address owner
         );
     
    
    
    function createMarketItem(
        address nftContract,
        uint256 tokenId,
        uint256 price
        ) public payable nonReentrant {
            require(price > 0, "Price must be greater than 0");
            
            _itemIds.increment();
            uint256 itemId = _itemIds.current();
  
            idToMarketItem[itemId] =  MarketItem(
                itemId,
                nftContract,
                tokenId,
                payable(msg.sender),
                payable(address(0)),
                payable(royalty),
                price,
                false
            );
            
            IERC721(nftContract).transferFrom(msg.sender, address(this), tokenId);
                
            emit MarketItemCreated(
                itemId,
                nftContract,
                tokenId,
                msg.sender,
                address(0),
                address(royalty),
                price,
                false
            );
        }
        
    function createMarketSale(
        address nftContract,
        uint256 itemId
        ) public payable nonReentrant {
            uint price = idToMarketItem[itemId].price;
            uint tokenId = idToMarketItem[itemId].tokenId;
            bool sold = idToMarketItem[itemId].sold;
            require(msg.value == price, "Please submit the asking price in order to complete the purchase");
            require(sold != true, "This Sale has alredy finnished");
            emit MarketItemSold(
                itemId,
                msg.sender
                );

            idToMarketItem[itemId].seller.transfer(msg.value/2); //adjust the denominator to change the amount of dividends sent to the seller address 
            idToMarketItem[itemId].royalty.transfer(msg.value/2); //adjust the denominator to change the amount of dividends sent to the royalty address 
            IERC721(nftContract).transferFrom(address(this), msg.sender, tokenId);
            idToMarketItem[itemId].owner = payable(msg.sender);
            _itemsSold.increment();
            idToMarketItem[itemId].sold = true;
        }
        
    function fetchMarketItems() public view returns (MarketItem[] memory) {
        uint itemCount = _itemIds.current();
        uint unsoldItemCount = _itemIds.current() - _itemsSold.current();
        uint currentIndex = 0;

        MarketItem[] memory items = new MarketItem[](unsoldItemCount);
        for (uint i = 0; i < itemCount; i++) {
            if (idToMarketItem[i + 1].owner == address(0)) {
                uint currentId = i + 1;
                MarketItem storage currentItem = idToMarketItem[currentId];
                items[currentIndex] = currentItem;
                currentIndex += 1;
            }
        }
        return items;
    }
      
}

I approached this method by hardcoding the royalty address into the contract then using that address to create a second transfer in the function createMarketSale. You must manually divide the transfer amount between the seller and royalty so that there is no remainders, in this example the sale is split 50/50 …

I realize this is probably not the most efficient solution, so if anyone has helpful nuances or critiques let me know!

1 Like

Can someone help me out with deploying marketplaceBoilerplate.sol ?
im very new to this, i dont know how to do it.

Might be too long to describe here. If you search YouTube for β€œdeploy smart contract with remix”, it should give you the info you need.

Thankyou i deployed and one more question, i have to connect it with my metamask right? and as i use it in my browser will i have to deploy it everytime i reopen remix?

When im trying to list NFT, it shows an error in metamask

and when i try to change gas fee it shows error someone help me out pls
Screenshot 2022-03-02 124027

I was able to list my NFT for sale

but it does not show up under the β€œexplore market” tab

How do I go about fixing this?

hello thanks
I am sorry in advance for all the copy-paste that will follow my question.
I have encountered this same problem was time I run yarn start

  • the website opens but nothing works

Line 6:5: Delete ␍ prettier/prettier
Line 7:11: Delete ␍ prettier/prettier
Line 8:27: Delete ␍ prettier/prettier
Line 9:55: Delete ␍ prettier/prettie
and a lot more all most every row

src\hooks\useERC20Balance.js
Line 1:45: Delete ␍ prettier/prettier
Line 2:63: Delete ␍ prettier/prettier
Line 3:1: Delete ␍ prettier/prettier
Line 4:45: Delete ␍ prettier/prettier
Line 5:43: Delete ␍ prettier

same all most every row in this file

rc\hooks\useERC20Transfers.js
Line 1:45: Delete ␍ prettier/prettier
Line 2:63: Delete ␍ prettier/prettier
Line 3:1: Delete ␍ prettier/prettier
Line 4:41: Delete ␍ prettier/prettier
Line 5:43: Delete ␍ prettier/prettier
Line 6:75: Delete ␍ prettier/prettier
Line 7:58: Delete ␍ prettier/prettier
Line 8:1: Delete ␍ prettier/prettier
Line 9:20: Delete ␍ prettier/prettier
Line 10:23: Delete ␍ prettier/prettier
Line 11:73: Delete ␍ prettier/prettier
Line 12:60: Delete ␍ prettier/prettier
Line 13:47: Delete ␍ prettier/prettier
Line 14:1: Delete ␍ prettier/prettier
Line 15:44: Delete ␍ prettier/prettier
Line 16:25: Delete ␍ prettier/prettier
Line 17:69: Delete ␍ prettier/prettier
Line 18:40: Delete ␍ prettier/prettier
Line 19:5: Delete ␍ prettier/prettier
Line 20:59: Delete ␍ prettier/prettier
Line 21:3: Delete ␍ prettier/prettier

src\hooks\useIPFS.js
Line 1:31: Delete ␍ prettier/prettier
Line 2:33: Delete ␍ prettier/prettier
Line 3:54: Delete ␍ prettier/prettier
Line 4:68: Delete ␍ prettier/prettier
Line 5:5: Delete ␍ prettier/prettier
Line 6:1: Delete ␍ prettier/prettier
Line 7:26: Delete ␍ prettier/prettier
Line 8:3: Delete ␍ prettier/prettier

src\hooks\useInchDex.js
Line 1:45: Delete ␍ prettier/prettier
Line 2:44: Delete ␍ prettier/prettier
Line 3:1: Delete ␍ prettier/prettier
Line 4:32: Delete ␍ prettier/prettier
Line 5:45: Delete ␍ prettier/prettier
Line 6:48: Delete ␍ prettier/prettier
Line 7:1: Delete ␍ prettier/prettier
Line 8:20: Delete ␍ prettier/prettier
Line 9:57: Delete ␍ prettier/prettier
Line 10:28: Delete ␍ prettier/prettier
Line 11:37: Delete ␍ prettier/prettier
Line 12:54: Delete ␍ prettier/prettier
Line 13:41: Delete ␍ prettier/prettier
Line 14:1: Delete ␍ prettier/prettier
Line 15:37: Delete ␍ prettier/prettier
Line 16:42: Delete ␍ prettier/prettier
Line 17:80: Delete ␍ prettier/prettier
Line 18:80: Delete ␍ prettier/prettier
Line 19:79: Delete ␍ prettier/prettier
Line 20:35: Delete ␍ prettier/prettier
Line 21:27: Delete ␍ prettier/prettier
Line 22:35: Delete ␍ prettier/prettier
Line 23:20: Delete ␍ prettier/prettier
Line 24:8: Delete ␍ prettier/prettier
Line 25:1: Delete ␍ prettier/prettier
Line 26:35: Delete ␍ prettier/prettier
Line 27:53: Delete ␍ prettier/prettier
Line 28:40: Delete ␍ prettier/prettier
Line 29:18: Delete ␍ prettier/prettier
Line 30:26: Delete ␍ prettier/prettier
Line 31:18: Delete ␍ prettier/prettier
Line 32:78: Delete ␍ prettier/prettier
Line 33:36: Delete ␍ prettier/prettier
Line 34:24: Delete ␍ prettier/prettier
Line 35:69: Delete ␍ prettier/prettier
Line 36:77: Delete ␍ prettier/prettier
Line 37:55: Delete ␍ prettier/prettier
Line 38:18: Delete ␍ prettier/prettier
Line 39:11: Delete ␍ prettier/prettier
Line 40:37: Delete ␍ prettier/prettier
Line 41:34: Delete ␍ prettier/prettier
Line 42:28: Delete ␍ prettier/prettier
Line 43:52: Delete ␍ prettier/prettier
Line 44:73: Delete ␍ prettier/prettier
Line 45:77: Delete ␍ prettier/prettier
Line 46:59: Delete ␍ prettier/prettier
Line 47:16: Delete ␍ prettier/prettier
Line 48:12: Delete ␍ prettier/prettier
Line 49:11: Delete ␍ prettier/prettier
Line 50:41: Delete ␍ prettier/prettier
Line 51:6: Delete ␍ prettier/prettier
Line 52:1: Delete ␍ prettier/prettier
Line 53:25: Delete ␍ prettier/prettier
Line 54:27: Delete ␍ prettier/prettier
Line 55:42: Delete ␍ prettier/prettier
Line 56:34: Delete ␍ prettier/prettier
Line 57:10: Delete ␍ prettier/prettier
Line 58:30: Delete ␍ prettier/prettier
Line 59:9: Delete ␍ prettier/prettier
Line 60:39: Delete ␍ prettier/prettier
Line 61:4: Delete ␍ prettier/prettier
Line 62:1: Delete ␍ prettier/prettier
Line 63:34: Delete ␍ prettier/prettier
Line 64:48: Delete ␍ prettier/prettier
Line 65:79: Delete ␍ prettier/prettier
Line 66:80: Delete ␍ prettier/prettier
Line 67:79: Delete ␍ prettier/prettier
Line 68:35: Delete ␍ prettier/prettier
Line 69:27: Delete ␍ prettier/prettier
Line 70:35: Delete ␍ prettier/prettier
Line 71:20: Delete ␍ prettier/prettier
Line 72:51: Delete ␍ prettier/prettier
Line 73:19: Delete ␍ prettier/prettier
Line 74:8: Delete ␍ prettier/prettier
Line 75:4: Delete ␍ prettier/prettier
Line 76:1: Delete ␍ prettier/prettier
Line 77:43: Delete ␍ prettier/prettier
Line 78:3: Delete ␍ prettier/prettier
Line 79:1: Delete ␍ prettier/prettier
Line 80:27: Delete ␍ prettier/prettier

src\hooks\useVerifyMetadata.js
Line 1:34: Delete ␍ prettier/prettier
Line 2:37: Delete ␍ prettier/prettier
Line 3:1: Delete ␍ prettier/prettier
Line 4:4: Delete ␍ prettier/prettier
Line 5:78: Delete ␍ prettier/prettier
Line 6:119: Delete ␍ prettier/prettier
Line 7:75: Delete ␍ prettier/prettier
Line 8:4: Delete ␍ prettier/prettier
Line 9:41: Delete ␍ prettier/prettier
Line 10:37: Delete ␍ prettier/prettier
Line 11:46: Delete ␍ prettier/prettier
Line 12:1: Delete ␍ prettier/prettier
Line 13:6: Delete ␍ prettier/prettier
Line 14:46: Delete ␍ prettier/prettier
Line 15:25: Delete ␍ prettier/prettier
Line 16:18: Delete ␍ prettier/prettier
Line 17:6: Delete ␍ prettier/prettier
Line 18:33: Delete ␍ prettier/prettier
Line 19:47: Delete ␍ prettier/prettier
Line 20:34: Delete ␍ prettier/prettier
Line 21:23: Delete ␍ prettier/prettier
Line 22:22: Delete ␍ prettier/prettier
Line 23:31: Delete ␍ prettier/prettier
Line 24:70: Delete ␍ prettier/prettier
Line 25:23: Delete ␍ prettier/prettier
Line 26:1: Delete ␍ prettier/prettier
Line 27:6: Delete ␍ prettier/prettier
Line 28:32: Delete ␍ prettier/prettier
Line 29:31: Delete ␍ prettier/prettier
Line 30:25: Delete ␍ prettier/prettier
Line 31:19: Delete ␍ prettier/prettier
Line 32:6: Delete ␍ prettier/prettier
Line 33:36: Delete ␍ prettier/prettier
Line 34:19: Delete ␍ prettier/prettier
Line 35:60: Delete ␍ prettier/prettier
Line 36:77: Delete ␍ prettier/prettier
Line 37:14: Delete ␍ prettier/prettier
Line 38:6: Delete ␍ prettier/prettier
Line 39:19: Delete ␍ prettier/prettier
Line 40:25: Delete ␍ prettier/prettier
Line 41:33: Delete ␍ prettier/prettier
Line 42:28: Delete ␍ prettier/prettier
Line 43:25: Delete ␍ prettier/prettier
Line 44:16: Delete ␍ prettier/prettier
Line 45:25: Delete ␍ prettier/prettier
Line 46:73: Delete ␍ prettier/prettier
Line 47:41: Delete ␍ prettier/prettier
Line 48:13: Delete ␍ prettier/prettier
Line 49:10: Delete ␍ prettier/prettier
Line 50:26: Delete ␍ prettier/prettier
Line 51:18: Delete ␍ prettier/prettier
Line 52:30: Delete ␍ prettier/prettier
Line 53:60: Delete ␍ prettier/prettier
Line 54:12: Delete ␍ prettier/prettier
Line 55:16: Delete ␍ prettier/prettier
Line 56:24: Delete ␍ prettier/prettier
Line 57:64: Delete ␍ prettier/prettier
Line 58:30: Delete ␍ prettier/prettier
Line 59:36: Delete ␍ prettier/prettier
Line 60:35: Delete ␍ prettier/prettier
Line 61:13: Delete ␍ prettier/prettier
Line 62:38: Delete ␍ prettier/prettier
Line 63:35: Delete ␍ prettier/prettier
Line 64:30: Delete ␍ prettier/prettier
Line 65:20: Delete ␍ prettier/prettier
Line 66:96: Delete ␍ prettier/prettier
Line 67:15: Delete ␍ prettier/prettier
Line 68:22: Delete ␍ prettier/prettier
Line 69:16: Delete ␍ prettier/prettier
Line 70:38: Delete ␍ prettier/prettier
Line 71:16: Delete ␍ prettier/prettier
Line 72:23: Delete ␍ prettier/prettier
Line 73:73: Delete ␍ prettier/prettier
Line 74:26: Delete ␍ prettier/prettier
Line 75:13: Delete ␍ prettier/prettier
Line 76:25: Delete ␍ prettier/prettier
Line 77:9: Delete ␍ prettier/prettier
Line 78:24: Delete ␍ prettier/prettier
Line 79:73: Delete ␍ prettier/prettier
Line 80:15: Delete ␍ prettier/prettier
Line 81:15: Delete ␍ prettier/prettier
Line 82:30: Delete ␍ prettier/prettier
Line 83:12: Delete ␍ prettier/prettier
Line 84:10: Delete ␍ prettier/prettier
Line 85:20: Delete ␍ prettier/prettier
Line 86:1: Delete ␍ prettier/prettier
Line 87:6: Delete ␍ prettier/prettier
Line 88:23: Delete ␍ prettier/prettier
Line 89:25: Delete ␍ prettier/prettier
Line 90:30: Delete ␍ prettier/prettier
Line 91:6: Delete ␍ prettier/prettier
Line 92:40: Delete ␍ prettier/prettier
Line 93:19: Delete ␍ prettier/prettier
Line 94:29: Delete ␍ prettier/prettier
Line 95:16: Delete ␍ prettier/prettier
Line 96:66: Delete ␍ prettier/prettier
Line 97:19: Delete ␍ prettier/prettier
Line 98:45: Delete ␍ prettier/prettier
Line 99:56: Delete ␍ prettier/prettier
Line 100:20: Delete ␍ prettier/prettier
Line 101:1: Delete ␍ prettier/prettier
Line 102:29: Delete ␍ prettier/prettier
Line 103:25: Delete ␍ prettier/prettier

src\index.js
Line 1:35: Replace 'react';␍ with "react"; prettier/prettier
Line 2:34: Delete ␍ prettier/prettier
Line 3:25: Delete ␍ prettier/prettier
Line 4:49: Delete ␍ prettier/prettier
Line 5:22: Delete ␍ prettier/prettier
Line 6:74: Delete ␍ prettier/prettier
Line 7:48: Delete ␍ prettier/prettier
Line 8:1: Delete ␍ prettier/prettier
Line 9:57: Delete ␍ prettier/prettier
Line 10:1: Delete ␍ prettier/prettier
Line 11:61: Delete ␍ prettier/prettier
Line 12:61: Delete ␍ prettier/prettier
Line 13:1: Delete ␍ prettier/prettier
Line 14:28: Delete ␍ prettier/prettier
Line 15:60: Delete ␍ prettier/prettier
Line 16:13: Delete ␍ prettier/prettier
Line 17:30: Delete ␍ prettier/prettier
Line 18:21: Delete ␍ prettier/prettier
Line 19:88: Delete ␍ prettier/prettier
Line 20:7: Delete ␍ prettier/prettier
Line 21:20: Delete ␍ prettier/prettier
Line 22:13: Delete ␍ prettier/prettier
Line 23:62: Delete ␍ prettier/prettier
Line 24:29: Delete ␍ prettier/prettier
Line 25:25: Delete ␍ prettier/prettier
Line 26:7: Delete ␍ prettier/prettier
Line 27:9: Delete ␍ prettier/prettier
Line 28:13: Delete ␍ prettier/prettier
Line 29:66: Delete ␍ prettier/prettier
Line 30:23: Delete ␍ prettier/prettier
Line 31:13: Delete ␍ prettier/prettier
Line 32:7: Delete ␍ prettier/prettier
Line 33:4: Delete ␍ prettier/prettier
Line 34:3: Delete ␍ prettier/prettier
Line 35:1: Delete ␍ prettier/prettier
Line 36:17: Delete ␍ prettier/prettier
Line 37:15: Delete ␍ prettier/prettier
Line 38:21: Delete ␍ prettier/prettier
Line 39:17: Delete ␍ prettier/prettier
Line 40:35: Delete ␍ prettier/prettier
Line 41:3: Delete ␍ prettier/prettier
Line 42:1: Delete ␍ prettier/prettier
Line 43:72: Delete ␍ prettier/prettier
Line 44:73: Delete ␍ prettier/prettier
Line 45:58: Delete ␍ prettier/prettier
Line 46:38: Delete ␍ prettier/prettier

src\serviceWorkerRegistration.js
Line 1:60: Delete ␍ prettier/prettier
Line 2:40: Delete ␍ prettier/prettier
Line 3:1: Delete ␍ prettier/prettier
Line 4:79: Delete ␍ prettier/prettier
Line 5:79: Delete ␍ prettier/prettier
Line 6:80: Delete ␍ prettier/prettier
Line 7:76: Delete ␍ prettier/prettier
Line 8:44: Delete ␍ prettier/prettier
Line 9:1: Delete ␍ prettier/prettier
Line 10:77: Delete ␍ prettier/prettier
Line 11:37: Delete ␍ prettier/prettier
Line 12:1: Delete ␍ prettier/prettier
Line 13:29: Delete ␍ prettier/prettier
Line 14:46: Delete ␍ prettier/prettier
Line 15:44: Delete ␍ prettier/prettier
Line 16:44: Delete ␍ prettier/prettier
Line 17:54: Delete ␍ prettier/prettier
Line 18:36: Delete ␍ prettier/prettier
Line 19:64: Delete ␍ prettier/prettier
Line 20:7: Delete ␍ prettier/prettier
Line 21:3: Delete ␍ prettier/prettier
Line 22:1: Delete ␍ prettier/prettier
Line 23:35: Delete ␍ prettier/prettier
Line 24:79: Delete ␍ prettier/prettier
Line 25:73: Delete ␍ prettier/prettier
Line 26:77: Delete ␍ prettier/prettier
Line 27:55: Delete ␍ prettier/prettier
Line 28:78: Delete ␍ prettier/prettier
Line 29:80: Delete ␍ prettier/prettier
Line 30:84: Delete ␍ prettier/prettier
Line 31:14: Delete ␍ prettier/prettier
Line 32:6: Delete ␍ prettier/prettier
Line 33:1: Delete ␍ prettier/prettier
Line 34:44: Delete ␍ prettier/prettier
Line 35:67: Delete ␍ prettier/prettier
Line 36:1: Delete ␍ prettier/prettier
Line 37:25: Delete ␍ prettier/prettier
Line 38:94: Delete ␍ prettier/prettier
Line 39:48: Delete ␍ prettier/prettier
Line 40:1: Delete ␍ prettier/prettier
Line 41:80: Delete ␍ prettier/prettier
Line 42:45: Delete ␍ prettier/prettier
Line 43:51: Delete ␍ prettier/prettier
Line 44:23: Delete ␍ prettier/prettier
Line 45:71: Delete ␍ prettier/prettier
Line 46:67: Delete ␍ prettier/prettier
Line 47:13: Delete ␍ prettier/prettier
Line 48:12: Delete ␍ prettier/prettier
Line 49:15: Delete ␍ prettier/prettier
Line 50:58: Delete ␍ prettier/prettier
Line 51:40: Delete ␍ prettier/prettier
Line 52:8: Delete ␍ prettier/prettier
Line 53:8: Delete ␍ prettier/prettier
Line 54:4: Delete ␍ prettier/prettier
Line 55:2: Delete ␍ prettier/prettier
Line 56:1: Delete ␍ prettier/prettier
Line 57:42: Delete ␍ prettier/prettier
Line 58:26: Delete ␍ prettier/prettier
Line 59:21: Delete ␍ prettier/prettier
Line 60:30: Delete ␍ prettier/prettier
Line 61:43: Delete ␍ prettier/prettier
Line 62:58: Delete ␍ prettier/prettier
Line 63:40: Delete ␍ prettier/prettier
Line 64:18: Delete ␍ prettier/prettier
Line 65:10: Delete ␍ prettier/prettier
Line 66:49: Delete ␍ prettier/prettier
Line 67:56: Delete ␍ prettier/prettier
Line 68:54: Delete ␍ prettier/prettier
Line 69:80: Delete ␍ prettier/prettier
Line 70:76: Delete ␍ prettier/prettier
Line 71:59: Delete ␍ prettier/prettier
Line 72:27: Delete ␍ prettier/prettier
Line 73:72: Delete ␍ prettier/prettier
Line 74:78: Delete ␍ prettier/prettier
Line 75:17: Delete ␍ prettier/prettier
Line 76:1: Delete ␍ prettier/prettier
Line 77:34: Delete ␍ prettier/prettier
Line 78:47: Delete ␍ prettier/prettier
Line 79:47: Delete ␍ prettier/prettier
Line 80:16: Delete ␍ prettier/prettier
Line 81:21: Delete ␍ prettier/prettier
Line 82:63: Delete ␍ prettier/prettier
Line 83:52: Delete ␍ prettier/prettier
Line 84:63: Delete ␍ prettier/prettier
Line 85:65: Delete ␍ prettier/prettier
Line 86:1: Delete ␍ prettier/prettier
Line 87:34: Delete ␍ prettier/prettier
Line 88:48: Delete ␍ prettier/prettier
Line 89:48: Delete ␍ prettier/prettier
Line 90:16: Delete ␍ prettier/prettier
Line 91:14: Delete ␍ prettier/prettier
Line 92:12: Delete ␍ prettier/prettier
Line 93:11: Delete ␍ prettier/prettier
Line 94:9: Delete ␍ prettier/prettier
Line 95:7: Delete ␍ prettier/prettier
Line 96:24: Delete ␍ prettier/prettier
Line 97:73: Delete ␍ prettier/prettier
Line 98:8: Delete ␍ prettier/prettier
Line 99:2: Delete ␍ prettier/prettier
Line 100:1: Delete ␍ prettier/prettier
Line 101:50: Delete ␍ prettier/prettier
Line 102:76: Delete ␍ prettier/prettier
Line 103:17: Delete ␍ prettier/prettier
Line 104:45: Delete ␍ prettier/prettier
Line 105:5: Delete ␍ prettier/prettier
Line 106:26: Delete ␍ prettier/prettier
Line 107:81: Delete ␍ prettier/prettier
Line 108:64: Delete ␍ prettier/prettier
Line 109:11: Delete ␍ prettier/prettier
Line 110:35: Delete ␍ prettier/prettier
Line 111:74: Delete ␍ prettier/prettier
Line 112:10: Delete ␍ prettier/prettier
Line 113:79: Delete ␍ prettier/prettier
Line 114:63: Delete ␍ prettier/prettier
Line 115:49: Delete ␍ prettier/prettier
Line 116:38: Delete ␍ prettier/prettier
Line 117:14: Delete ␍ prettier/prettier
Line 133:34: Delete ␍ prettier/prettier
Line 134:32: Delete ␍ prettier/prettier
Line 135:35: Delete ␍ prettier/prettier
Line 136:9: Delete ␍ prettier/prettier
Line 137:26: Delete ␍ prettier/prettier
Line 138:38: Delete ␍ prettier/prettier
Line 139:10: Delete ␍ prettier/prettier
Line 140:4: Delete ␍ prettier/prettier
Line 141:2: Delete ␍ prettier/prettier

Search for the keywords to learn more about each error.
PS C:\Users\OrelSror\ethereum-boilerplate>

Hey @orels

Its okay you dont have to copy all the errors if they are same :slight_smile:

check this and let me know if it will help you

thank you for the quick response

I am so new at coding/ programming it would take me some time to understand everything they write and apply it.
:slight_smile:

1 Like

hello guys i wanted to ask why my β€œExplore Market” page doesnt have a β€œBuy now” green badge as shown in the tutorial.

i have the same questions. hoping somebody will help us hehe

Hey,

This might have to do with /src/helpers/collection.js… if you already havent made an additional input for the collection youre trying to render, it wont show up in the β€œExplore Market” tab. When you open this file, copy the template thats already in place for the eth mainnet; then replace the: chain ID (IIRC rinkeby’s is 0x4), addrs (contract address for the collection you want to render), name= {name of collection}, and image = {cover image url you want to render}.

EX:

"0x4": [
    {
      image:
        "https://lh3.googleusercontent.com/Ju9CkWtV-1Okvf45wo8UctR-M9He2PjILP0oOvxE89AyiPPGtrR3gysu1Zgy0hjd2xKIgjJJtWIc0ybj4Vd7wv8t3pxDGHoJBzDB=s130",
      name: "Bored Ape Yacht Club",
      addrs: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
    },

Let me know if this helps, if not I still might be able to help!

Hey,

I ran into this problem too a while back… The issue I faced was found in /src/components/NFTTokenIds.jsx

Given you already followed the instructions in the tutorial for syncing and watching new contract events within the moralis server’s page. Within these two lines in NFTTokenIds.jsx:

const queryMarketItems = useMoralisQuery("CreateRoyaltyMarketItems");

const marketList = Moralis.Object.extend("CreateRoyaltyMarketItems");

You must make sure the quotations match the TableName you inputted into the synced event submission. IIRC, my TableName input was off from what the tutorial had

Hope this helps!

My NFTS are on ipfs. How do I get my images to show?

@matrixone

This could be an issue with whether your IPFS daemon is running or not. Assuming you minted the NFTs using the sharable link provided by IPFS, the gateway must be running in order to render the assets within the boilerplate.

This can be a cumbersome process because it requires you to consistently have your IPFS gateway running; to circumvent this, I would suggest looking into a pinning service (http://docs.ipfs.io.ipns.localhost:8080/how-to/mint-nfts-with-ipfs/#option-1-pinata)

Hey, I just ran into the same problem and I fixed it by increasing the gas fee. Might be a simple answer, maybe try increasing the gas fee more than you thought? Keep incrementally increasing the priority fee and gas fee until the red error saying the fee is β€œtoo low for network conditions” goes away

hope that is helpful

Hi everyone,

I got the following error while buying the NFT.

MetaMask - RPC Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"transaction underpriced"}}}

Anyone, please help me to resolve this, metamask popup is working fine after clicking the confirm button i get this error I think the error is related to gas fees how I can increase the gas fees?

Thank you.

After reading the error it looks you are trying to buy NFT at lower prices than it actually is.

@taha thanks for your reply, No I listed it for the same price only.