client/example: Build before deploying in test

This commit is contained in:
armaniferrante 2021-03-09 07:07:22 -08:00
parent a7b092a611
commit 292423b691
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
1 changed files with 2 additions and 0 deletions

View File

@ -29,10 +29,12 @@ main() {
# Deploy programs.
#
pushd ../../examples/composite/
anchor build
anchor deploy
local composite_pid=$(cat target/idl/composite.json | jq -r .metadata.address)
popd
pushd ../../examples/tutorial/basic-2/
anchor build
anchor deploy
local basic_2_pid=$(cat target/idl/basic_2.json | jq -r .metadata.address)
popd