Skip to content

Commit

Permalink
format cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelArtists committed Feb 5, 2025
1 parent 87eaa88 commit b2889be
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ jobs:

- name: Install runner
run: make install-runner

- name: Cast Version (debug)
run: cast --version

- name: Run E2E Tests
run: |
Expand Down
4 changes: 0 additions & 4 deletions core/helpers/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@ function deploy_contract() {
echo "Failed to calculate gas price" >&3
exit 1
fi
echo "Running cast send with command:"
echo "cast send --rpc-url $rpc_url --private-key $private_key --gas-price $comp_gas_price --legacy --create $bytecode"
local cast_output=$(cast send --rpc-url "$rpc_url" \
--private-key "$private_key" \
--gas-price $comp_gas_price \
--legacy \
--create "$bytecode" \
2>&1)


# Check if cast send was successful
if [[ $? -ne 0 ]]; then
echo "Error: Failed to send transaction."
Expand Down Expand Up @@ -332,7 +329,6 @@ function check_balances() {
fi
}


function verify_balance() {
local rpc_url="$1" # RPC URL
local token_addr="$2" # gas token contract address
Expand Down
9 changes: 6 additions & 3 deletions core/helpers/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ else
echo "Skipping infrastructure deployment. Ensure the required services are already running!"
fi

if [[ "$L2_RPC_URL" == "" ]]; then
kurtosis_l2_rpc_url="$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)"
export L2_RPC_URL="${L2_RPC_URL:-$l2_rpc_url}"

# Check if L2_RPC_URL is empty or not set
if [[ -z "$L2_RPC_URL" ]]; then
echo "Error: L2_RPC_URL is a required environment variable. Please update the .env file."
exit 1 # Exit the script with an error code
fi
export L2_RPC_URL="${L2_RPC_URL:-$kurtosis_l2_rpc_url}"

# Run selected tests with exported environment variables
if [[ "$BATS_TESTS" == "all" ]]; then
Expand Down
1 change: 0 additions & 1 deletion test-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ if [[ "$DEPLOY_INFRA" == "true" ]]; then
else
echo "⏩ Skipping infrastructure deployment. Ensure the required services are already running!"
fi

export L2_RPC_URL="${L2_RPC_URL:-$l2_rpc_url}"

# Check if L2_RPC_URL is empty or not set
Expand Down
2 changes: 1 addition & 1 deletion tests/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
KURTOSIS_ENCLAVE=cdk
TMP_CDK_FOLDER=tmp/cdk
USE_L1_GAS_TOKEN_CONTRACT=true
L2_RPC_URL="http://127.0.0.1:53015"
L2_RPC_URL=""
L2_SENDER_PRIVATE_KEY=0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625

0 comments on commit b2889be

Please sign in to comment.