Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

chore: quiet fail if contract already predeployed #11

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

sebastiendan
Copy link
Member

@sebastiendan sebastiendan commented Mar 24, 2023

Description

The docker polygon-edge.sh init script deploys the ConstAddressDeployer contract. Re-running the init script/container fails as the contract already exists on-chain.

This PR makes the pre-deploy command quietly fails (but still output the error message).

PR Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added or updated tests that comprehensively prove my change is effective or that my feature works

@sebastiendan sebastiendan marked this pull request as ready for review March 24, 2023 11:23
@sebastiendan sebastiendan requested a review from a team as a code owner March 24, 2023 11:23
@sebastiendan sebastiendan force-pushed the chore/quiet-fail-predeploy branch from bb0d52a to e57e969 Compare March 26, 2023 10:26
@sebastiendan sebastiendan requested a review from a team as a code owner March 26, 2023 10:26
@sebastiendan sebastiendan requested a review from foo0x29a March 26, 2023 10:26
@sebastiendan sebastiendan merged commit 919dc4c into develop Mar 26, 2023
@sebastiendan sebastiendan deleted the chore/quiet-fail-predeploy branch March 26, 2023 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants