diff --git a/scripts/setup-swap.js b/scripts/setup-swap.js new file mode 100644 index 0000000..c8ab35d --- /dev/null +++ b/scripts/setup-swap.js @@ -0,0 +1,20 @@ +const hre = require("hardhat"); + +async function main() { + // Deploy ERC20 Token + // XXX Who is default signer here? + const ERC20 = await hre.ethers.getContractFactory("ERC20PresetMinterPauser"); + var erc20 = await ERC20.deploy("TestToken", "TEST"); + await erc20.deployed(); + console.log("ERC20: ", erc20.address); + +} + +// We recommend this pattern to be able to use async/await everywhere +// and properly handle errors. +main() + .then(() => process.exit(0)) + .catch(error => { + console.error(error); + process.exit(1); + });