Last active
July 30, 2020 05:55
-
-
Save viannaandreBR/9a1647d4faa4b266ec695e29f2ee85dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const _deploy_contracts = require("../migrations/2_deploy_contracts") | |
| var DappToken = artifacts.require('DappToken') | |
| _deploy_contracts('DappToken', function(accounts)){ | |
| it('sets the total supply upon deployment', function(){ | |
| return DappToken deployed() | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity >=0.4.2; | |
| contract DappToken{ | |
| // Constructor | |
| // Set the Total number of tokens | |
| // Read the total number of tokens | |
| uint256 public totalSupply; | |
| constructor () public{ | |
| totalSupply = 1000000; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment