Refactor update_contracts.sh to remove unnecessary directory change and streamline contract address handling

This commit is contained in:
vvzvlad 2025-01-16 09:16:28 +03:00
parent 92f6cdcd40
commit 8425114abf

View File

@ -1,7 +1,6 @@
#!/bin/bash
set -e
cd ~/ritual
contract_address=$(jq -r '.transactions[0].contractAddress' projects/hello-world/contracts/broadcast/Deploy.s.sol/8453/run-latest.json)
checksum_address=$(python3 toChecksumAddress.py $contract_address)
sed -i "s/SaysGM(.*/SaysGM($checksum_address);/" projects/hello-world/contracts/script/CallContract.s.sol