Skip to content

Commit

Permalink
feat: re-deploy at arbitrum sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekim committed Oct 10, 2024
1 parent b0aab30 commit f4074c1
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 18 deletions.
10 changes: 5 additions & 5 deletions deploy/BookManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const deployFunction: DeployFunction = async function (hre: HardhatRuntimeEnviro
const deployer = (await getNamedAccounts())['deployer'] as Address
const chain = await getChain(network.provider)

if (await deployments.getOrNull('BookManager')) {
return
}

let bookLibraryAddress = (await deployments.getOrNull('Book'))?.address
if (!bookLibraryAddress) {
bookLibraryAddress = await deployWithVerify(hre, 'Book', [])
}

if (await deployments.getOrNull('BookManager')) {
return
}

let owner: Address = '0x'
let defaultProvider: Address = '0x'
if (chain.testnet || isDevelopmentNetwork(chain.id)) {
Expand All @@ -30,7 +30,7 @@ const deployFunction: DeployFunction = async function (hre: HardhatRuntimeEnviro
throw new Error('Unknown chain')
}

const entropy = 256n
const entropy = 1000n
await deployCreate3WithVerify(
deployer,
entropy,
Expand Down
26 changes: 13 additions & 13 deletions deployments/421614/Book.json

Large diffs are not rendered by default.

Loading

0 comments on commit f4074c1

Please sign in to comment.