Skip to content

Commit

Permalink
update with IImmutableOwnerCreate2Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Nov 8, 2023
1 parent 3400bd4 commit 47413c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/01-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ async function main() {

const ContractFactory = await ethers.getContractFactory(CONTRACT_NAME)
const create2Factory = await ethers.getContractAt(
'ImmutableOwnerCreate2Factory',
'IImmutableOwnerCreate2Factory',
DeployAddresses.ImmutableOwnerCreate2Factory, // This address is the same on all networks
signer,
)

const bytecode = ContractFactory.bytecode
const salt = '0x00000000000000000000000000000000000000008b99e5a778edb02572010000'
const tx = await create2Factory.safeCreate2(salt, bytecode)
const tx = await create2Factory.deploy(salt, bytecode)

console.log(`${CONTRACT_NAME} deployment txHash: ${tx.hash}`)
}
Expand Down

0 comments on commit 47413c2

Please sign in to comment.