Giter Club home page Giter Club logo

erc20-dapp's Introduction

Polymath Tutorial - ERC20 Sample

Simple tutorial for connecting to ERC20 contract

Quick start

Complete the following steps in command line:

  • Clone the git repo git clone [email protected]:sajclarke/erc20-dapp.git
  • In the cloned repo root folder, install dependencies npm install
  • Start Ganache on port 8545
  • Run truffle compile
  • Run truffle migrate
  • Copy the entire build/contracts folders (and contents) to the front/src folder
  • In the front folder, run npm i
  • Run locally npm start

Contributing

We encourage contributions! Please read our Code Of Conduct before submitting a pull request. If you are reporting a bug or vulnerability, please submit an issue to this repo

Instructions for submitting a pull request:

  • Create a fork of this git repo
  • Commit each change to a separate branch on the forked repo
  • Submit a pull request to this repo

Do you have a question?

If you have any questions then you can contact Polymath via Gitter: https://gitter.im/PolymathNetwork/Lobby

erc20-dapp's People

Contributors

sajclarke avatar

Stargazers

 avatar

Watchers

 avatar  avatar

erc20-dapp's Issues

`truffle compile` compiler version errors

Console output below, got some errors after updating to the latest commit and re-running through the setup steps

$ truffle compile

Compiling ./contracts/Migrations.sol...
Compiling ./contracts/TutorialCoin.sol...
Compiling openzeppelin-solidity/contracts/math/SafeMath.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/IERC20.sol...

/.../erc20-dapp/contracts/Migrations.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.0;
^---------------------^
,openzeppelin-solidity/contracts/token/ERC20/IERC20.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.2;
^---------------------^
,openzeppelin-solidity/contracts/math/SafeMath.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.2;
^---------------------^
,openzeppelin-solidity/contracts/token/ERC20/ERC20.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.2;
^---------------------^
,/.../erc20-dapp/contracts/TutorialCoin.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.0;
^---------------------^
Compilation failed. See above.

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.