Skip to content

Commit

Permalink
fix add relayer in e2e tests (#1532)
Browse files Browse the repository at this point in the history
* fix add relayer in e2e tests

* fix EVM private keys in script
  • Loading branch information
Eikix authored Nov 7, 2024
1 parent d41e91a commit 3f9bd5e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion scripts/e2e_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@ if [ "${ENV}" = "sepolia" ]; then
echo "Please provide the STARKNET_SEPOLIA_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${EVM_PRIVATE_KEY}" ]; then
if [ -z "${STARKNET_SEPOLIA_EVM_PRIVATE_KEY}" ]; then
echo "Please provide the EVM_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_RELAYER_ACCOUNT_ADDRESS}" ]; then
echo "Please provide the STARKNET_SEPOLIA_RELAYER_ACCOUNT_ADDRESS environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_RELAYER_PRIVATE_KEY}" ]; then
echo "Please provide the STARKNET_SEPOLIA_RELAYER_PRIVATE_KEY environment variable."
exit 1
fi
SKIP="--ignore tests/end_to_end/L1L2Messaging --ignore tests/end_to_end/CairoPrecompiles -k 'not test_should_set_account_bytecode and not test_should_set_account_nonce and not test_should_upgrade_account_class and not test_should_raise_when_class_hash_is_not_declared and not test_should_upgrade_class_hash and not test_should_transfer_ownership and not test_should_return_transaction_count and not test_should_withdraw_all_eth'"
elif [ "${ENV}" = "sepolia-staging" ]; then
export EVM_PRIVATE_KEY="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
Expand All @@ -94,6 +102,18 @@ elif [ "${ENV}" = "sepolia-staging" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_RELAYER_ACCOUNT_ADDRESS}" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_RELAYER_ACCOUNT_ADDRESS environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_RELAYER_PRIVATE_KEY}" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_RELAYER_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_EVM_PRIVATE_KEY}" ]; then
echo "Please provide the EVM_PRIVATE_KEY environment variable."
exit 1
fi

SKIP="--ignore tests/end_to_end/L1L2Messaging --ignore tests/end_to_end/CairoPrecompiles -k 'not test_should_set_account_bytecode and not test_should_set_account_nonce and not test_should_upgrade_account_class and not test_should_raise_when_class_hash_is_not_declared and not test_should_upgrade_class_hash and not test_should_transfer_ownership and not test_should_return_transaction_count and not test_should_withdraw_all_eth'"
fi
Expand Down

0 comments on commit 3f9bd5e

Please sign in to comment.