summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeph Grunschlag <zeph@algorand.com>2022-08-14 22:00:56 -0500
committerZeph Grunschlag <zeph@algorand.com>2022-08-14 22:00:56 -0500
commit88c93c683515ea879fbb3382d3f09bb25d4bc8c2 (patch)
tree3e39fff315e9434cd8fe14c49aadd2cc996d7012
parentf27410073855a4525e7911db2362df60b548db7c (diff)
per CR suggestion to drop 2nd --box in group txn + KISS with box valuetest-box-group-txn
-rwxr-xr-xtest/scripts/e2e_subs/box-search.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/scripts/e2e_subs/box-search.sh b/test/scripts/e2e_subs/box-search.sh
index 43ffb45cd..a6de53baa 100755
--- a/test/scripts/e2e_subs/box-search.sh
+++ b/test/scripts/e2e_subs/box-search.sh
@@ -81,13 +81,12 @@ BOX_LIST=$(${gcmd} app box list --app-id "$APPID" --max 1)
# Create and set a box in an atommic txn group:
-# Create:
BOX_NAME="str:great box"
+echo "Create $BOX_NAME"
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --box "$BOX_NAME" --app-arg "str:create" --app-arg "$BOX_NAME" -o box_create.txn
-# Set:
-BOX_VALUE="str:I'm a wonderful box"
-${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --box "$BOX_NAME" --app-arg "str:set" --app-arg "$BOX_NAME" --app-arg "str:$BOX_VALUE" -o box_set.txn
+echo "Set $BOX_NAME using $BOX_VALUE"
+${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --app-arg "str:set" --app-arg "$BOX_NAME" --app-arg "str:$BOX_VALUE" -o box_set.txn
# Group them, sign and broadcast:
cat box_create.txn box_set.txn > box_create_n_set.txn
@@ -95,11 +94,12 @@ ${gcmd} clerk group -i box_create_n_set.txn -o box_group.txn
${gcmd} clerk sign -i box_group.txn -o box_group.stx
${gcmd} clerk rawsend -f box_group.stx
-# Confirm that we can get this last individual box info
+echo "Confirm that NAME $BOX_NAME as expected"
${gcmd} app box info --app-id "$APPID" --name "$BOX_NAME"
NAME=$(${gcmd} app box info --app-id "$APPID" --name "$BOX_NAME" | grep Name | tr -s ' ' | cut -d" " -f2-)
[ "$NAME" = "$BOX_NAME" ]
+echo "Confirm that VALUE $BOX_VALUE i.e. ($B64_BOX_VALUE) as expected"
VALUE=$(${gcmd} app box info --app-id "$APPID" --name "$BOX_NAME" | grep Value | tr -s ' ' | cut -d" " -f2-)
[ "$VALUE" = "$B64_BOX_VALUE" ]