-
Notifications
You must be signed in to change notification settings - Fork 2
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
ZK-611: contract deployment environments #47
Conversation
|
-z '${{ vars.CI_TESTNET_ALICE_PUBLIC_KEY }} }}' || \ | ||
-z '${{ vars.CI_TESTNET_BOB_PUBLIC_KEY }} }}' || \ | ||
-z '${{ vars.CI_TESTNET_CHARLIE_PUBLIC_KEY }} }}' || \ | ||
-z '${{ vars.CI_TESTNET_TS_SDK_PUBLIC_KEY }} }}' || \ | ||
-z '${{ vars.CI_TESTNET_RELAYER_SIGNER_ADDRESSES }} }}' || \ | ||
-z '${{ vars.CI_TESTNET_FEE_DESTINATION }} }}' |
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.
this was NOT working
default: "testnet-dev" | ||
type: choice | ||
options: | ||
- "testnet-dev" |
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.
Please update this PR with latest changes. I have modified the environments to be dev
, stage
and prod
(without the chain environment in the name).
# for "testnet-dev" we use default owner address, as it's not important | ||
- name: Set environment-specific variables | ||
run: | | ||
if [ "${{ github.event.inputs.environment }}" == "testnet-dev" ]; then |
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.
Just as in the previous comment - change the env name
@@ -85,6 +110,19 @@ jobs: | |||
|
|||
cat contract_spec_with_block_numbers.json | |||
|
|||
- name: Determine address to store | |||
run: | | |||
if [ "${{ github.event.inputs.environment }}" == "testnet-dev" ]; then |
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.
Change env name here as well
@@ -12,8 +12,9 @@ contract DeployShielderScript is Script { | |||
function run() external { | |||
uint256 privateKey = vm.envUint("PRIVATE_KEY"); |
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 we could rename it to DEPLOYER_PRIVATE_KEY for consistency with the Actions env vars?
No description provided.