From 1db835a38a32a7a10e84f6bbf5f8ba9373f5e598 Mon Sep 17 00:00:00 2001 From: Alessandro Ricottone Date: Tue, 2 Jul 2024 09:58:36 +0200 Subject: [PATCH] Improve README file --- script/swap_and_bridge/test/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/swap_and_bridge/test/README.md b/script/swap_and_bridge/test/README.md index eaa6d5cb..13cea1df 100644 --- a/script/swap_and_bridge/test/README.md +++ b/script/swap_and_bridge/test/README.md @@ -1,8 +1,10 @@ +# Tst Scripts for SwapAndBridge + Tests in this folder are run as script as they require to be run in a Sepolia forked environment, since they depend on the contracts owned and deployed by Lido and Diva teams. Before running them, start an L1 and L2 fork node using the shell scripts `runL1TestNetwork.sh` and `runL2TestNetwork.sh` inside [script](../..) folder respectively and make sure to run the tests from this folder. -Notice that these tests may fail fo reasons unrelated to the implementation of this feature, but rather because of problems with the target integration (for instance if the target LST contract does not mint new LSTs). +Notice that these tests may fail fo reasons unrelated to the implementation of this feature, but rather because of problems with the target integration (for instance if the target LST contract does not mint new LSTs). If the `L2_TOKEN_ADDR_DIVA` value is not set in the `.env` file, the script will automatically deploy a test contract. Notice however that this deployment may fail if the very same test contract has already been deployed in your forked environment (which could be the case, for instance, if you run the scripts multiple times). In this case, just restart the fork nodes or modify the test contract name. ## E2E Tests