From 619f704c54bfdc8d3d77a280e8a325faf173ba9b Mon Sep 17 00:00:00 2001
From: Aidan Salzmann <aidan@stridelabs.co>
Date: Sun, 15 Jan 2023 21:30:07 -0500
Subject: [PATCH] fix `GET_VAL_ADDR` param (#577)

---
 dockernet/tests/integration_tests.bats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dockernet/tests/integration_tests.bats b/dockernet/tests/integration_tests.bats
index 6f94431740..41a63a00bc 100644
--- a/dockernet/tests/integration_tests.bats
+++ b/dockernet/tests/integration_tests.bats
@@ -165,7 +165,7 @@ setup_file() {
   WAIT_FOR_BLOCK $STRIDE_LOGS 2
 
   # check staked tokens
-  NEW_STAKE=$($HOST_MAIN_CMD q staking delegation $(GET_ICA_ADDR $HOST_CHAIN_ID delegation) $(GET_VAL_ADDR $HOST_CHAIN_ID 1) | GETSTAKE)
+  NEW_STAKE=$($HOST_MAIN_CMD q staking delegation $(GET_ICA_ADDR $HOST_CHAIN_ID delegation) $(GET_VAL_ADDR $CHAIN_NAME 1) | GETSTAKE)
   stake_diff=$(($NEW_STAKE > 0))
   assert_equal "$stake_diff" "1"
 }