-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contract.getListingPrice() Not woking it throws a Error always. #67
Comments
I had the same problem, and I solved it by making sure that you're Metamask wallet should be connected to the same network where you deployed your smart contract. If you deployed your smart contract locally make sure that your metamask wallet is connected to Localhost8545 when Interacting when the smart contract. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const price = ethers.utils.parseUnits(formInput.price, 'ether')
let contract = new ethers.Contract(marketplaceAddress, NFTMarketplace.abi, signer)
let listingPrice = await contract.getListingPrice()
in that above code when i try to log the listing price i got the error
Can anyone please help me in that how to resolve it.
The text was updated successfully, but these errors were encountered: