Skip to content

Commit

Permalink
Adjust to use latest zodiac-core
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Jul 30, 2024
1 parent 732c12e commit b02b2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/01_mastercopy_module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ZeroHash } from "ethers"
import { DeployFunction } from "hardhat-deploy/types"
import { HardhatRuntimeEnvironment } from "hardhat/types"
import { deployFactories, deploySingleton } from "zodiac-core"
import { deployFactories, deployMastercopy } from "zodiac-core"

import createAdapter from "./eip1193"
import MODULE_CONTRACT_ARTIFACT from "../artifacts/contracts/MyModule.sol/MyModule.json"
Expand All @@ -21,7 +21,7 @@ const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

const MyModule = await ethers.getContractFactory("MyModule")

const { address: mastercopy } = await deploySingleton({
const { address: mastercopy } = await deployMastercopy({
bytecode: MyModule.bytecode,
constructorArgs: { types: ["address", "address"], values: [FirstAddress, FirstAddress] },
salt: ZeroHash,
Expand Down

0 comments on commit b02b2eb

Please sign in to comment.