Skip to content

Commit

Permalink
Import token.sol -> ethswap.sol
Browse files Browse the repository at this point in the history
Contract dappuniversity#1 (EthSwap) communicates with Contract dappuniversity#2 (DApp Token) + creates Token variable on EthSwap contract to be called for
  • Loading branch information
vnonCodes committed Jun 9, 2021
1 parent 13be61b commit fe73f72
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 45 deletions.
2 changes: 1 addition & 1 deletion migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = async function(deployer) {
const token = await Token.deployed()

//Deploy EthSwap
await deployer.deploy(EthSwap);
await deployer.deploy(EthSwap, token.address);
const ethSwap = await EthSwap.deployed()

//Transfer all tokens to EthSwap (1 million)
Expand Down
Loading

0 comments on commit fe73f72

Please sign in to comment.