Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
test for view-state added
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks authored and Mike Purvis committed Jun 28, 2021
1 parent 09fb724 commit 4129d3b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/test_account_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,20 @@ if [[ ! "$RESULT" =~ $EXPECTED ]]; then
exit 1
fi

echo Get account storage --finality final
RESULT=$(./bin/near view-state $testaccount --finality final)
EXPECTED="[]"
if [[ ! "$RESULT" == $EXPECTED ]]; then
echo FAILURE Unexpected output from near view-state
exit 1
fi

echo Get account storage --finality optimistic
RESULT=$(./bin/near view-state $testaccount --finality optimistic)
EXPECTED="[]"
if [[ ! "$RESULT" == $EXPECTED ]]; then
echo FAILURE Unexpected output from near view-state
exit 1
fi

./bin/near delete $testaccount test.near

0 comments on commit 4129d3b

Please sign in to comment.