Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the deployment of HostIo contract #10

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading