Skip to content

Commit

Permalink
Adding quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
algochoi committed Nov 8, 2022
1 parent d40733c commit bff4723
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/scripts/e2e_subs/box-search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ BOX_LIST=$(${gcmd} app box list --app-id "$APPID" --max 4)

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 $TEMPDIR/box_create.txn
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --box "$BOX_NAME" --app-arg "str:create" --app-arg "$BOX_NAME" -o "$TEMPDIR/box_create.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 $TEMPDIR/box_set.txn
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --app-arg "str:set" --app-arg "$BOX_NAME" --app-arg "str:$BOX_VALUE" -o "$TEMPDIR/box_set.txn"

# Group them, sign and broadcast:
cat $TEMPDIR/box_create.txn $TEMPDIR/box_set.txn > $TEMPDIR/box_create_n_set.txn
${gcmd} clerk group -i $TEMPDIR/box_create_n_set.txn -o $TEMPDIR/box_group.txn
${gcmd} clerk sign -i $TEMPDIR/box_group.txn -o $TEMPDIR/box_group.stx
${gcmd} clerk rawsend -f $TEMPDIR/box_group.stx
cat "$TEMPDIR/box_create.txn" "$TEMPDIR/box_set.txn" > "$TEMPDIR/box_create_n_set.txn"
${gcmd} clerk group -i "$TEMPDIR/box_create_n_set.txn" -o "$TEMPDIR/box_group.txn"
${gcmd} clerk sign -i "$TEMPDIR/box_group.txn" -o "$TEMPDIR/box_group.stx"
${gcmd} clerk rawsend -f "$TEMPDIR/box_group.stx"

echo "Confirm that NAME $BOX_NAME as expected"
${gcmd} app box info --app-id "$APPID" --name "$BOX_NAME"
Expand Down

0 comments on commit bff4723

Please sign in to comment.