Skip to content

Instantly share code, notes, and snippets.

@viannaandreBR
Last active July 30, 2020 05:55
Show Gist options
  • Select an option

  • Save viannaandreBR/9a1647d4faa4b266ec695e29f2ee85dd to your computer and use it in GitHub Desktop.

Select an option

Save viannaandreBR/9a1647d4faa4b266ec695e29f2ee85dd to your computer and use it in GitHub Desktop.
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()
})
})
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