From 1762551bb7f50fa7d161891564a8fdd910520c85 Mon Sep 17 00:00:00 2001 From: Justin Kilpatrick Date: Sat, 16 Mar 2024 08:09:45 -0400 Subject: [PATCH] Always rebuild smart contracts when starting chains When running the start chains script we should always rebuild the node environment since it seems to be blown away when moving across branches, causing the tests to fail in unexpected ways and provide no clear message that the npm build is the cause. --- scripts/integration_tests/container_scripts/reload-code.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/integration_tests/container_scripts/reload-code.sh b/scripts/integration_tests/container_scripts/reload-code.sh index 59ae08fa6..e39049f61 100755 --- a/scripts/integration_tests/container_scripts/reload-code.sh +++ b/scripts/integration_tests/container_scripts/reload-code.sh @@ -14,7 +14,14 @@ do rm -rf "/validator$i" done +# setup the solidity contracts +pushd /althea_rs/solidity/ +npm install . +npm run typechain +popd +# setup validators /althea_rs/scripts/integration_tests/container_scripts/setup-validators.sh $NODES +# run the validators and keep the running in the background /althea_rs/scripts/integration_tests/container_scripts/run-testnet.sh $NODES sleep 10