add sh files
This commit is contained in:
7
update_contracts.sh
Normal file
7
update_contracts.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user