ritual/update_contracts.sh
2024-09-21 23:51:36 +03:00

7 lines
341 B
Bash

#!/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