Giter VIP home page Giter VIP logo

poc-send-erc20-as-native-token's Introduction

Proof of Concept: Send Ethereum ERC20 standard token as well as native token

Requirement

Install testrpc

$ npm install -g ethereumjs-testrpc

Clone PoC and Install dependencie:

$ git clone https://github.com/tad88dev/poc-send-erc20-as-native-token.git
cd poc-send-erc20-as-native-token
poc-send-erc20-as-native-token~$ npm install

Test process

Start test RPC

$ testrpc

At the same time execute:

$ npm test

Result:

$ npm test

> [email protected] test /home/chiro8x/poc-send-erc20-as-native-token
> truffle test

Compiling ./contracts/BasicToken.sol...
Compiling ./contracts/Migrations.sol...


  Contract: BasicToken
    √ Should have 1000 token in userAccount (116ms)
    √ Should have 0 ETH in userAccount
    √ Should able to transfer 200 token to 0x0e31ad7828ee4ed5fa4fe957cbab0d50dab2fe68 (192ms)

  3 passing (371ms)

poc-send-erc20-as-native-token's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

geekscapital

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.