Fixed tests/cli/rest.sh for checking accounts

This commit is contained in:
Emmanuel Odeke
2017-08-18 22:50:10 +01:00
parent dfae4ccdbd
commit 8a4e24925a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ restAccount() {
assertNotNull "line=${LINENO}, address required" "$1"
ACCT=$(curl ${URL}/query/account/sigs:$1 2>/dev/null)
if [ -n "$DEBUG" ]; then echo $ACCT; echo; fi
assertEquals "line=${LINENO}, proper money" "$2" $(echo $ACCT | jq .coins[0].amount)
assertEquals "line=${LINENO}, proper money" "$2" $(echo $ACCT | jq .data.coins[0].amount)
return $?
}