Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. const ERC20Mock = artifacts.require("ERC20Mock");
  2.  
  3. module.exports = async function(deployer, network, accounts) {
  4. if (network === "development") {
  5. console.log("Deploying MockDAI on Development at: ", accounts[5]);
  6. await deployer.deploy(ERC20Mock, accounts[5], 100*(10**6), {from: accounts[5]});
  7. }
  8. }
  9.  
  10. contract("Erc20Teller", function([_, adminRole, user ]) {
  11. let daiAddress;
  12. beforeEach(async function() {
  13. daiAddress = (await web3.eth.getAccounts())[5];
  14. this.daiToken = await ERC20Mock.at(daiAddress);
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement