Skip to content

Commit

Permalink
fix: quick start e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Sep 27, 2023
1 parent 7882204 commit 348b48f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions yarn-project/end-to-end/src/guides/up_quick_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ ALICE_PRIVATE_KEY="0x2153536ff6628eee01cf4024889ff977a18d9fa61d0e414422f7681cf08
# docs:start:deploy
aztec-cli deploy \
TokenContractAbi \
--salt 0
--salt 0 \
--args $ALICE

aztec-cli check-deploy --contract-address 0x2d23acefa3ce07b3c308caf78d86c064cdf8957bcea48b38753cf58441796c8c

CONTRACT="0x2d23acefa3ce07b3c308caf78d86c064cdf8957bcea48b38753cf58441796c8c"

aztec-cli send _initialize \
--args $ALICE \
--contract-abi TokenContractAbi \
--contract-address $CONTRACT \
--private-key $ALICE_PRIVATE_KEY
# docs:end:deploy

# docs:start:mint-private
Expand Down Expand Up @@ -71,7 +66,7 @@ aztec-cli get-logs

# Test end result
BOB_BALANCE=$(aztec-cli call balance_of_private --args $BOB --contract-abi TokenContractAbi --contract-address $CONTRACT)
if ! echo $BOB_BALANCE | grep -q 500; then
if ! echo $BOB_BALANCE | grep -q 500; then
echo "Incorrect Bob balance after transaction (expected 500 but got $BOB_BALANCE)"
exit 1
fi
fi

0 comments on commit 348b48f

Please sign in to comment.