Skip to content

Commit 4657c66

Browse files
authored
Merge pull request #17 from DJViau/master
update readme
2 parents 15a27aa + 8662e45 commit 4657c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ export NFT_CONTRACT_ADDRESS="<deployed_contract_address>"
5050
export NETWORK="rinkeby"
5151
node scripts/mint.js
5252
```
53+
54+
Note: When running the minting script on mainnet, your environment variable needs to be set to `mainnet` not `live`. The environment variable affects the Infura URL in the minting script, not truffle. When you deploy, you're using truffle and you need to give truffle an argument that corresponds to the naming in truffle.js (`--network live`). But when you mint, you're relying on the environment variable you set to build the URL (https://github.com/ProjectOpenSea/opensea-creatures/blob/master/scripts/mint.js#L54), so you need to use the term that makes Infura happy (`mainnet`). Truffle and Infura use the same terminology for Rinkeby, but different terminology for mainnet. If you start your minting script, but nothing happens, double check your environment variables.

0 commit comments

Comments
 (0)