Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Make deployments consistently succeed #99

Closed
karlfloersch wants to merge 5 commits intomasterfrom
feat/update_deploy_for_testnet
Closed

Make deployments consistently succeed #99
karlfloersch wants to merge 5 commits intomasterfrom
feat/update_deploy_for_testnet

Conversation

@karlfloersch
Copy link
Contributor

Currently deployments fail often, this PR makes them slower but more consistent.

Contributing Agreement

for (uint32 i = 0; i < numContexts; i++) {
BatchContext memory context = _getBatchContext(i);
_validateBatchContext(context, nextQueueIndex);
// _validateBatchContext(context, nextQueueIndex);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to comment this out?

export const deploy = async (
config: RollupDeployConfig
): Promise<DeployResult> => {
console.log('Beginning deploy')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These logs will break the deployer container

.attach(contracts.Proxy__OVM_L1CrossDomainMessenger.address)
await xDomainMessenger.initialize(AddressManager.address)
await AddressManager.setAddress(
await (await xDomainMessenger.initialize(AddressManager.address, config.deployOverrides)).wait()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a huge fan of nested awaits on the same line, it feels pretty busy

@tynes
Copy link
Collaborator

tynes commented Dec 8, 2020

@karlfloersch
Copy link
Contributor Author

See this approach for a faster approach: https://github.com/ethereum-optimism/contracts-v2/pull/51/files#diff-3d2aa7498c1a7bdecb7dfd7b4b32db4b9002a9dd0093316455609da76ff952f1R60

Unfortunately on Goerli sending more than 1 transaction without waiting for the receipt often causes the deployment to fail :( So that should work if mempool management was better but unfortunately we've had issues in the past.

@karlfloersch karlfloersch force-pushed the feat/update_deploy_for_testnet branch from 1124a44 to 5a6b745 Compare December 10, 2020 21:44
@karlfloersch
Copy link
Contributor Author

Closing in favor of #99

@karlfloersch karlfloersch deleted the feat/update_deploy_for_testnet branch January 13, 2021 01:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants