-
Notifications
You must be signed in to change notification settings - Fork 271
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
fix: pass salt to deploy-l1-contracts.sh #10586
Changes from all commits
7fb3327
d2d293c
fb30f6e
da7c3de
943c3c0
00296fe
32a4e60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,17 +53,28 @@ spec: | |
- name: config | ||
mountPath: /shared/config | ||
{{- if .Values.bootNode.deployContracts }} | ||
- name: deploy-create2-delpoyer | ||
image: {{ .Values.images.foundry.image }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
source /shared/config/service-addresses | ||
cast publish --rpc-url ${ETHEREUM_HOST} 0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222 | ||
volumeMounts: | ||
- name: config | ||
mountPath: /shared/config | ||
- name: deploy-l1-contracts | ||
image: {{ .Values.images.aztec.image }} | ||
command: | ||
[ | ||
"/bin/bash", | ||
"-c", | ||
"cp /scripts/deploy-l1-contracts.sh /tmp/deploy-l1-contracts.sh && \ | ||
chmod +x /tmp/deploy-l1-contracts.sh && \ | ||
source /shared/config/service-addresses && \ | ||
/tmp/deploy-l1-contracts.sh {{ .Values.ethereum.chainId }} \"{{ join "," .Values.validator.validatorAddresses }}\"" | ||
] | ||
- /bin/bash | ||
- -c | ||
- | | ||
cp /scripts/deploy-l1-contracts.sh /tmp/deploy-l1-contracts.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of curiosity, why were we copying the script elsewhere before running it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #10580 I added a common script (now removed) to block for services to be avilable but I was getting permission errors. I couldn't figure out why so I just inlined the content into the pod. Your comment above made me realise that it's probably becuase the scripts are mounted from a config map that's readonly. |
||
chmod +x /tmp/deploy-l1-contracts.sh | ||
source /shared/config/service-addresses | ||
|
||
/tmp/deploy-l1-contracts.sh "{{ .Values.aztec.l1Salt }}" "{{ .Values.ethereum.chainId }}" "{{ join "," .Values.validator.validatorAddresses }}" | ||
volumeMounts: | ||
- name: scripts-output | ||
mountPath: /shared/contracts | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,4 @@ | |
"engines": { | ||
"node": ">=18" | ||
} | ||
} | ||
} |
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.
perhaps need to handle the case of
$SALT
being undefined