HashLips / hashlips_nft_contract

A simple NFT smart contract that works with the rest of the HashLips ecosystem.
MIT License
832 stars 674 forks source link

Error in mint price #29

Open rodrombusiness opened 2 years ago

rodrombusiness commented 2 years ago

Was set to 0.12 ETH, was working but when launched changed to 12 ETH and now I cant get back in and change the price

rodrombusiness commented 2 years ago

is there a way of signing back into remix.ide and change the setCost

zamzaaam commented 2 years ago
  1. Connect to Metamask with the address owner of your contract
  2. In Metamask => View account on etherscan
  3. There is the list of all the transaction you've made. Look for the contract creation that you want to change
  4. Click on the Contract Creation link
  5. Copy the contract address (top of the page)
  6. Go back to remix.ethereum.com IDE
  7. On the deploy & Transaction Module , set the same environnement as your contract at creation and the same account
  8. Then comes 2 choices
    • Deploy (a new one). We dont want that.
    • Or at address
  9. Fill the at address field with the contract you just copied form etherscan and hit the blue button
  10. Your deployed contract and its functions should be displayed, you then can use the function setCost to change the price
vuxxea commented 2 years ago

@neosodon1 this should work, however when I'm trying to use the setcost function it isn't updating my contract. Any idea what to do?

slattx commented 2 years ago

@vuxxea Same things happening for me. Price should be 25 MATIC but currently it's 0.075 and the minting dapp doesn't reflect this when I change it via the smart contract - have you managed to solve?

CryptoRobotClub commented 2 years ago

Curious if anybody fixed this? I'm working with the same issue right now.

Update Fixed: It looks like you need to set the Cost_WEI in config.json to change what MetaMask shows by default. I also had to update the cost in my NFT.sol contract to be in WEI (otherwise I could mint for basically free if I interacted with the contract).