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

Support transaction null status on deploy script #156

Conversation

patitonar
Copy link
Contributor

This PR takes #155 as base to include those changes on the deployment script. So it should be merged after that PR.

For every contract deployment if status is not success it will also check for tx.contractAddress in case status is not present.
https://github.com/poanetwork/poa-bridge-contracts/blob/b419821b4b38580d5a090ed4bda1867f9b62dc80/deploy/src/deploymentUtils.js#L50-L52

For transactions that changes the state if status is not present it will check if the state was changed. Most of these checks can be found on deploymentUtils.js
For example when upgradeTo is called:
https://github.com/poanetwork/poa-bridge-contracts/blob/b419821b4b38580d5a090ed4bda1867f9b62dc80/deploy/src/deploymentUtils.js#L159-L163

Also a retry functionality was implemented for when we check the new state so it can avoid any race conditions. If after all retries, state didn't change, it will fail and stop the script. It uses default configuration for retry that detailed here

@patitonar patitonar requested a review from akolotov February 28, 2019 15:23
@ghost ghost assigned patitonar Feb 28, 2019
@patitonar patitonar changed the title Support null status deploy script Support transaction null status on deploy script Feb 28, 2019
Copy link
Collaborator

@akolotov akolotov left a comment

Choose a reason for hiding this comment

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

Please address the merge conflict issue.

…ll-status-deploy-script

# Conflicts:
#	deploy/package-lock.json
#	deploy/package.json
#	deploy/src/erc_to_erc/home.js
#	deploy/src/native_to_erc/foreign.js
@ghost ghost added the in progress label Apr 23, 2019
@ghost ghost removed the in progress label May 2, 2019
@akolotov akolotov merged commit 9aed1f1 into 119-Epic-rewards-for-bridge-validators May 2, 2019
@ghost ghost removed the review label May 2, 2019
@akolotov akolotov deleted the support-null-status-deploy-script branch May 21, 2019 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants