Skip to content

Commit

Permalink
Merge pull request #10 from EspressoSystems/jh/fix-deploy
Browse files Browse the repository at this point in the history
Fix the deployment of HostIo contract
  • Loading branch information
ImJeremyHe authored Jul 19, 2024
2 parents 073785c + fe9fee4 commit 3ff17cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/deploymentUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function deployAllContracts(
signer: any,
maxDataSize: BigNumber,
verify: boolean = true,
hotshotAddr?: string
espressoLightClientAddr?: string
): Promise<Record<string, Contract>> {
const isOnArb = await _isRunningOnArbitrum(signer)

Expand Down Expand Up @@ -177,7 +177,7 @@ export async function deployAllContracts(
[],
verify
)
const hostIoArg = hotshotAddr ? [hotshotAddr] : []
const hostIoArg = espressoLightClientAddr ? [espressoLightClientAddr] : []
const proverHostIo = await deployContract(
'OneStepProverHostIo',
signer,
Expand Down
7 changes: 6 additions & 1 deletion scripts/local-deployment/deployCreatorAndCreateRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ async function main() {
throw new Error('PARENT_CHAIN_ID not set')
}

let espressoLightClientAddr = process.env.LIGHT_CLIENT_ADDR as string
if (!espressoLightClientAddr) {
throw new Error("LIGHT_CLIENT_ADDR not set")
}

const deployerWallet = new ethers.Wallet(
deployerPrivKey,
new ethers.providers.JsonRpcProvider(parentChainRpc)
Expand All @@ -44,7 +49,7 @@ async function main() {

/// deploy templates and rollup creator
console.log('Deploy RollupCreator')
const contracts = await deployAllContracts(deployerWallet, maxDataSize, false)
const contracts = await deployAllContracts(deployerWallet, maxDataSize, false, espressoLightClientAddr)

console.log('Set templates on the Rollup Creator')
await (
Expand Down

0 comments on commit 3ff17cb

Please sign in to comment.