From 3f9bd5e1cffe8168e563cc2842697a9aec8fdec8 Mon Sep 17 00:00:00 2001 From: Elias Tazartes <66871571+Eikix@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:05:11 +0100 Subject: [PATCH] fix add relayer in e2e tests (#1532) * fix add relayer in e2e tests * fix EVM private keys in script --- scripts/e2e_pipeline.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/scripts/e2e_pipeline.sh b/scripts/e2e_pipeline.sh index 3847f84d1..57ed8a2b6 100644 --- a/scripts/e2e_pipeline.sh +++ b/scripts/e2e_pipeline.sh @@ -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" @@ -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