Skip to content

Commit

Permalink
Using container chain-1 cast for sending transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Oct 28, 2024
1 parent 3e14f82 commit 98c05c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/playground-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
sed -i -e 's/ETH_RPC_URL=.*/ETH_RPC_URL=$FORK_URL_MAINNET/g' playground/.env
cat playground/.env
- name: Free space check
run: df -h

- name: Start docker containers
run: |
cd playground
Expand All @@ -50,5 +53,4 @@ jobs:
- name: Execute validation script
run: |
cd playground
source .env
./test_playground.sh
4 changes: 2 additions & 2 deletions playground/test_playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ app_data_hash=$(cast keccak $APPDATA)

# Deposit WETH
echo "Wrapping some ETH"
cast send --private-key $PRIVATE_KEY --value 3ether $WETH_ADDRESS > /dev/null
docker exec playground-chain-1 cast send --private-key $PRIVATE_KEY --value 3ether $WETH_ADDRESS > /dev/null

echo "Setting WETH allowance"
cast send --private-key $PRIVATE_KEY $WETH_ADDRESS "approve(address, uint)" $COW_VAULT_RELAYER_CONTRACT $MAXUINT256 > /dev/null
docker exec playground-chain-1 cast send --private-key $PRIVATE_KEY $WETH_ADDRESS "approve(address, uint)" $COW_VAULT_RELAYER_CONTRACT $MAXUINT256 > /dev/null

echo "Request price qoute for buying USDC for WETH"
quote_response=$( curl --fail-with-body -s -X 'POST' \
Expand Down

0 comments on commit 98c05c3

Please sign in to comment.