fix deploy script

This commit is contained in:
Ricardo Guilherme Schmidt 2023-06-28 21:10:52 -03:00
parent cbeb1afdd8
commit 50241a1494
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030
1 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@ async function main() {
const tokenController = await ethers.deployContract(
network.config.chainId == 1 ? "SNTPlaceHolder" : "SNTFaucet",
[
deployer,
tokenController.target
deployer.address,
miniMeToken.target
]
);
await miniMeToken.changeController(tokenController.address);
await miniMeToken.changeController(tokenController.target);
console.log(
`${network.config.chainId == 1 ? "SNT" : "STT"} ${miniMeToken.target} controlled by ${await miniMeToken.controller()}`
);