Skip to content

Commit

Permalink
Merge pull request #98 from clober-dex/feat/deploy-arbitrum-sepolia
Browse files Browse the repository at this point in the history
Feat/deploy arbitrum sepolia
  • Loading branch information
JhChoy authored Oct 11, 2024
2 parents b0aab30 + 6771336 commit cc6ea31
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 21 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.

6 changes: 3 additions & 3 deletions deployments/421614/BookManager.json

Large diffs are not rendered by default.

Loading

0 comments on commit cc6ea31

Please sign in to comment.