Skip to content

Commit 2ce128f

Browse files
committed
fix: .env missing variable and update names
1 parent 2b51f25 commit 2ce128f

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
RPC_URL=<RPC_URL>
22
PRIVATE_KEY=<YOUR_PRIVATE_KEY>
3+
EXISTING_DEPLOYMENT_INFO_PATH=./script/output/<NETWORK>/proof_aggregation_service_deployment_output.json
34
PROOF_AGGREGATION_SERVICE_CONFIG_PATH=./script/deploy/config/<NETWORK>/.holesky.config.json
45
PROOF_AGGREGATION_SERVICE_OUTPUT_PATH=./script/output/<NETWORK>/proof-aggregator-service.<NETWORK>.config.json
56
ETHERSCAN_API_KEY=<ETHERSCAN_API_KEY>

contracts/scripts/proof_aggregator_service/upgrade.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd ../
1010
# Save the output to a variable to later extract the address of the new deployed contract
1111
forge_output=$(forge script script/upgrade/ProofAggregatorServiceUpgrader.s.sol \
1212
$EXISTING_DEPLOYMENT_INFO_PATH \
13-
$OUTPUT_PATH \
13+
$PROOF_AGGREGATION_SERVICE_OUTPUT_PATH \
1414
--rpc-url $RPC_URL \
1515
--private-key $PRIVATE_KEY \
1616
--broadcast \
@@ -25,14 +25,12 @@ proof_aggregator_service_proxy=$(echo "$forge_output" | awk '/0: address/ {print
2525
proof_aggregator_service_implementation=$(echo "$forge_output" | awk '/1: address/ {print $3}')
2626

2727
# Use the extracted value to replace the batcher payment service values in alignedlayer_deployment_output.json and save it to a temporary file
28-
jq --arg proof_aggregator_service_implementation "$proof_aggregator_service_implementation" '.addresses.alignedProofAggregationServiceImplementation = $proof_aggregator_service_implementation' $OUTPUT_PATH > "$OUTPUT_PATH.temp"
28+
jq --arg proof_aggregator_service_implementation "$proof_aggregator_service_implementation" '.addresses.alignedProofAggregationServiceImplementation = $proof_aggregator_service_implementation' $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH > "$PROOF_AGGREGATION_SERVICE_OUTPUT_PATH.temp"
2929

3030
# Replace the original file with the temporary file
31-
mv "$OUTPUT_PATH.temp" $OUTPUT_PATH
31+
mv "$PROOF_AGGREGATION_SERVICE_OUTPUT_PATH.temp" $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH
3232

3333
# Delete the temporary file
34-
rm -f "$OUTPUT_PATH.temp"
34+
rm -f "$PROOF_AGGREGATION_SERVICE_OUTPUT_PATH.temp"
3535

36-
data=$(cast calldata "upgradeTo(address)" $batcher_payment_service_implementation)
37-
38-
echo "The new Proof Aggregator Service Implementation is $batcher_payment_service_implementation"
36+
echo "The new Proof Aggregator Service Implementation is $proof_aggregator_service_implementation"

0 commit comments

Comments
 (0)