Skip to content

Update Listing doesn't update the price in Moralis Database. #750

Answered by Abhisek0x
Abhisek0x asked this question in Q&A
Discussion options

You must be logged in to vote

Solved it...If anyone is facing such issues then try changing these things and it will work. I don't know why it is showing error but update these things.

addEvent.js

Just add one more sync event, i.e update Listing ABI

const Moralis = require("moralis/node");
require("dotenv").config();
const contractAddresses = require("./constants/networkMapping.json");

let chainId = process.env.chainId || 31337;
let moralisChainId = chainId == "31337" ? "1337" : chainId;
const contractAddress = contractAddresses[chainId]["NftMarketplace"][0];

const appId = process.env.NEXT_PUBLIC_APP_ID;
const serverUrl = process.env.NEXT_PUBLIC_SERVER_URL;
const masterKey = process.env.masterKey;

async function main(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Abhisek0x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant