Skip to content

Commit

Permalink
fix: contract deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Farterson committed Feb 10, 2022
1 parent 5a0b12f commit f1957f4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/deployDiamondAndRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async function main() {
const { DAI } = await getNamedAccounts();

const tokenAddr = DAI;
const address = await deployer.getAddress();
if (!deployer.provider) {
process.exit(1);
}
Expand Down Expand Up @@ -134,21 +133,21 @@ async function main() {
const hubFacet = await deploy<HubFacet>("HubFacet");
console.log("HubFacet deployed at:", hubFacet.address);
contracts.push({
name: "contracts/facts/HubFacet.sol:HubFacet",
name: "contracts/facets/HubFacet.sol:HubFacet",
address: hubFacet.address,
});

const foundryFacet = await deploy<FoundryFacet>("FoundryFacet");
console.log("FoundryFacet deployed at:", foundryFacet.address);
contracts.push({
name: "contracts/facts/FoundryFacet.sol:FoundryFacet",
name: "contracts/facets/FoundryFacet.sol:FoundryFacet",
address: foundryFacet.address,
});

const feesFacet = await deploy<FeesFacet>("FeesFacet");
console.log("FeesFacet deployed at:", feesFacet.address);
contracts.push({
name: "contracts/facts/FeesFacet.sol:FeesFacet",
name: "contracts/facets/FeesFacet.sol:FeesFacet",
address: feesFacet.address,
});

Expand All @@ -160,7 +159,7 @@ async function main() {
meTokenRegistryFacet.address
);
contracts.push({
name: "contracts/facts/MeeTokenRegistryFacet.sol:MeeTokenRegistryFacet",
name: "contracts/facets/MeTokenRegistryFacet.sol:MeTokenRegistryFacet",
address: meTokenRegistryFacet.address,
});

Expand All @@ -169,14 +168,14 @@ async function main() {
);
console.log("DiamondLoupeFacet deployed at:", diamondLoupeFacet.address);
contracts.push({
name: "contracts/facts/DiamondLoupeFacet.sol:DiamondLoupeFacet",
name: "contracts/facets/DiamondLoupeFacet.sol:DiamondLoupeFacet",
address: diamondLoupeFacet.address,
});

const ownershipFacet = await deploy<OwnershipFacet>("OwnershipFacet");
console.log("OwnershipFacet deployed at:", ownershipFacet.address);
contracts.push({
name: "contracts/facts/OwnershipFacet.sol:OwnershipFacet",
name: "contracts/facets/OwnershipFacet.sol:OwnershipFacet",
address: ownershipFacet.address,
});

Expand Down

0 comments on commit f1957f4

Please sign in to comment.