-
Notifications
You must be signed in to change notification settings - Fork 20
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
Make it branch agnostic #9
base: master
Are you sure you want to change the base?
Conversation
@@ -33,7 +34,7 @@ function findKeysCallBack(web3, miningKey, payoutKey) { | |||
} | |||
|
|||
function retrievePayoutKey(miningKey, cb) { | |||
var contractAddress = config.Ethereum.contracts.KeysManager.addr; | |||
var contractAddress = config.Ethereum.contracts.KeysManager[network].addr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe pass contractAddress
directly as env variable here? Or, still better
- make a .json file in corresponding branch of spec repo with all contract addresses and their abis
- in this repository add this file to .gitignore
- use this file's data in script
- in playbook - download this file from spec repo during installation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@vbaranov what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rstormsf I made PR to your branch rstormsf#1 with the change: ABI and contract address from single endpoint: chain-spec
repo. If you and @phahulin are ok, let's merge it and then merge current PR. Or let me know if anything wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rstormsf#1 is closed due to poanetwork/poa-scripts-moc#21 (comment)
This change requires changes in ansible deployment scripts:
https://github.com/poanetwork/deployment-playbooks/search?utf8=%E2%9C%93&q=SCRIPTS_VALIDATOR_BRANCH&type=
If we agree on this approach, lets merge this PR and then make a change in deployment playbooks