Skip to content
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

Error "Buildship widget doesn't know how to fetch price from your contract."(has been resolved) #55

Closed
Undoqaq opened this issue Jun 18, 2022 · 2 comments

Comments

@Undoqaq
Copy link

Undoqaq commented Jun 18, 2022

When I mint I get the error, please help me thanks.(has been resolved)

@Undoqaq
Copy link
Author

Undoqaq commented Jun 19, 2022

1/ It has been solved, the reason is that there is no my contract price name in web3.js, just add it and it will work.
2/ Add the price name from your contract in this line of code and open the PR to deploy to vercel, reference PR #56.
src/mint/web3.js const methodNameVariants = ['price', 'cost', 'public_sale_price', 'getPrice']
3/ Finally, open the nftcomponents deployed in vercel and copy the URL. Modify the URL of script and link in HTML code in webflow.
<script src="https://nftcomponents-duxef28qc-buildship.vercel.app/static/js/main.js"></script>
<link href="https://nftcomponents-duxef28qc-buildship.vercel.app/static/css/main.css" rel="stylesheet">
PS: Only modify the URL part, do not modify the file suffix behind. “/static/js/main.js” and "/static/css/main.css"

@Undoqaq Undoqaq changed the title Error "Buildship widget doesn't know how to fetch price from your contract." Error "Buildship widget doesn't know how to fetch price from your contract."(has been resolved) Jun 19, 2022
@Undoqaq Undoqaq closed this as completed Jun 19, 2022
@Ncrypt16
Copy link

Ncrypt16 commented Jul 1, 2022

Hi, how did you get the newly deployed vercel to work? It shows error 404 for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants