mirror of
https://github.com/vacp2p/swap-contracts-module.git
synced 2025-02-27 02:10:32 +00:00
Deploy SimpleSwapFactory
This commit is contained in:
parent
d9a9a67277
commit
6432c647a3
@ -8,6 +8,12 @@ async function main() {
|
||||
await erc20.deployed();
|
||||
console.log("ERC20: ", erc20.address);
|
||||
|
||||
// Deploy SwapFactory
|
||||
const SimpleSwapFactory = await hre.ethers.getContractFactory("SimpleSwapFactory");
|
||||
var simpleSwapFactory = await SimpleSwapFactory.deploy(erc20.address);
|
||||
await simpleSwapFactory.deployed();
|
||||
console.log("SimpleSwapFactory: ", simpleSwapFactory.address);
|
||||
|
||||
}
|
||||
|
||||
// We recommend this pattern to be able to use async/await everywhere
|
||||
|
Loading…
x
Reference in New Issue
Block a user