Once a test contract is deployed with Truffle on Rinkeby, how do you run this scripts/mint.js to actually mint? Is this run under truffle with truffle exec with proper environmental variable set (like one for CONTRACT_ADDRESS, etc) or just run it in command prompt with node? I get this error: truffle exec ./scripts/mint.js --network rinkeby Using network 'rinkeby'. TypeError: fn is not a function at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:128:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:101:1 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:3)
Posted by M about a year ago
Hi! Like it talks about in this thread https://github.com/ipfs/ipfs/issues/181 what are the chances of OpenSea supporting generic IPFS URLs of the format fs:/ipfs/<hash> or /ipfs/<hash> in the tokenURI calls of our ERC721 contracts?
Posted by Wil Bown about a year ago
Hi, Let's say I created an ERC 721 token that is an 'avatar' for an RPG-like game. If I wanted to update the token with experience and other attributes, can this be done with ERC 721 or are NFTs not able to be updated once they're deployed on the blockchain? Thanks
Posted by Karl about a year ago
Hi I'm Maki, ethereum based dApps developer in Japan. I want to put my Dapp on Open Sea My Dapp enable user upload image and create ERC721 token which can be used in Dapp I tested in rinkby network: https://rinkeby.opensea.io/assets/digitalartchaintoken DigitalArtChainToken | OpenSea But this is not getting updated when user create new token. Is it possible to have page which is updated frequently? One more question , can I use my contract auction logic? I have logic to make benefit for publisher of digital Art.
Posted by Maki Ooki about a year ago
Hi, I'm trying to create a burnable ERC721 token. So far I've called the openzeppelin ERC721Burnable contract and added the functions as well. My contract deploys just fine, but I am having trouble understanding how to 'trigger' the burn. In the the tutorial we are using 'mint.js' to mint tokens, could a similar thing, like 'burn.js', be created to handle burning? Is there an implementation of this by the opensea team (probably asking for too much here, ha). Is this the preferred implementation to burn, since we are using mint.js to mint? How would I pass the correct token ID to burn?
Posted by jay sun 11 months ago
Hi, I asked same question here for the rinkeby test net token. I deployed same in main net, but it still does not get listed automatically. https://opensea.io/category/digitalartchain Can you please fix this as well? Also can you tell me what is the right path to fix this? I guess every time asking here is not good solution for you. Thank you in advance!
Posted by Maki Ooki about a year ago
Hi - I'm trying to deploy the crypto puff tutorial using pragma. Is there full implementation (including the inheritance of 10 sub contracts ; basic.sol/safemath.sol erc165 etc etc) or am I missing something? Not finding open zeppelin easy here!... Thanks
Posted by tom alcott about a year ago
I am a bit confused on the actual image creation. In the guide to add metadata, the reference to an image was: https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png Does this mean we need to have the images stored somewhere else to point to in advance, and then create a metadata pointing to it? This would also mean I would need to have a separate mechanism to create images and upload to the image host location prior to creating metadata? Or is this automated as part of the Opensea implementation? Thank you.
Posted by Mark about a year ago
Hello, I am currently developing a smart contract that will create ERC721 tokens. I am interested in using your auction features in the future and currently adding a metadata contract. I looked up your documentation on adding metadata at https://docs.opensea.io/docs/2-adding-metadata. Everything in the documentation is pretty clear but I don't understand this portion "external_url": "https://cryptopuff.io/3". We are building a single page application (SPA) that by nature does not have unique URLs. If my metadata wont include an external URL would that be an issue? My metadata will include a link to the image of the token. Thank you for your time, Oleg Mitrakhovich
Posted by Oleg Mitrakhovich about a year ago
Hi, this is the error that shows the Pragma Editor with the Deploy option after paste the codeof CryptoPuff Sample Contract= :2:1: ParserError: Source "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol" not found: File not supplied initially. import 'openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; ^--------------------------------------------------------------------^ How can solve this? Thanks
Posted by capir about a year ago
Posted by Kevin Phillips about a year ago
First of all, loved the tutorial and the project! I'm new to smart contract developing and followed along just fine. I used the open-sea-creature api (https://opensea-creatures-api.herokuapp.com/api/creature/) to populate the metadata of my NFT's (success!). I then tried to change the URI in Creature.sol to point to my own API. I then tried to migrate the contract w/ truffle, but cant get it to use the updated URI. I realized, since the blockchain is immutable does that mean I cannot change anything in the Creature.sol contract? Basically, if you're making a project, once you've set the API link it's over and cannot be changed right ? I'd have to deploy a new smart contract to mess with these attributes?
Posted by go0t 11 months ago
Hi, I looked at your FAQ page, and have a couple of questions. 1. What do you typically suggest for creating meta data file automatically when minting? Do we need to handle this inside the solidity contract (I assume not?) or make a hook to an external script that writes the metadata to a file while minting (and thus creating a new collectible image)? 2. For contract redeployment from v1 to v2, for instance, how can we easily move all v1's minted token data to v2? Moving all these v1 transactions to v2 causes additional gas, correct? Is it suggested to just read the token data from v1 and just import to v2 or?!? Any suggestions are welcome! Thank you for previous responses!
Posted by Mark about a year ago
Hello, I am working on adding the metadata of a token, should I use setTokenURI function from the contract? I tried several times of putting json data using it, but it does not work, it seems that I need to put a url in stead of actual json data. May I know if I need to host a website that shows the json data and then use the function in the format of setTokenURI(ID, "http://xxx.com/") please? If it works like this, what happened if the website is down? Thanks!
Posted by Jack about a year ago
The OpenSea validator returned a message that my ERC-721 contract on rinkeby did not meet the standard. I'm using Zepkit and I was pretty sure it was legit. I looked for a validator, but I only found one for mainnet. Is there a way to get more detailed info for troubleshooting?
Posted by Chris Lumpkin about a year ago
I'm testing my NFT at your platform, but there is on issue - unicode symbol not showing correctly. for example the name of the contract: https://rinkeby.opensea.io/assets/0x85e3dcfa057acfc072234de9a33c15194304c37b/1 your system shows: "â CRYPTOHEROES GAME â" but it should be "⚔ CRYPTOHEROES GAME ⚔" Can you fix it?
Posted by Mikhail Semenkin about a year ago