Giter Site home page Giter Site logo

Doesnt work about crypto-car-battle HOT 1 OPEN

apoorvlathey avatar apoorvlathey commented on August 23, 2024
Doesnt work

from crypto-car-battle.

Comments (1)

future2back avatar future2back commented on August 23, 2024

Hello @Dreadox First of all you should compile and deploy the CarBattle.sol (That is deprecated and we should update it ) in a testnet or on ganache, using remix ide.
To solve CarBattle.sol you should update import from ERC721 from a dif blob of OpenZeppelin because they updated it, you also have to select compiler 0.6.2 on remix idle as mentioned on #1.

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/56de324afea13c4649b00ca8c3a3e3535d532bd4/contracts/token/ERC721/ERC721.sol";

After deploying you should copy contract address and update first line of the file web3setup.js that is inside of assets/js.
at the same file we should update the line 611 that contains if(r != "rinkeby") changing the name to the network in use, or you can just comment //alert("Connect Metamask to Rinkeby Testnet!") on 612

After that you can host it on IPFS https://ipfs.io or use python if u want.

you have to install python, open cmd on project folder then:

python -m http.server

Hope this can help you, any question let me know.

from crypto-car-battle.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.