artgenexyz / webflow-nft-components

Connect web3 to Webflow without coding skills

Home Page:https://buildship.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Undoqaq opened this issue · comments

commented

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

commented

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"

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