Commit 7c7e8a70 authored by linj's avatar linj Committed by vipwzw

update token test shell

parent 6780aa90
...@@ -252,13 +252,13 @@ function token_create() { ...@@ -252,13 +252,13 @@ function token_create() {
echo "${hash}" echo "${hash}"
query_tx "${1}" "${hash}" query_tx "${1}" "${hash}"
${1} token get_precreated ${1} token precreated
owner=$(${1} token get_precreated | jq -r ".owner") owner=$(${1} token precreated | jq -r ".owner")
if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then
echo "wrong pre create owner" echo "wrong pre create owner"
exit 1 exit 1
fi fi
total=$(${1} token get_precreated | jq -r ".total") total=$(${1} token precreated | jq -r ".total")
if [ "${total}" != 10000 ]; then if [ "${total}" != 10000 ]; then
echo "wrong pre create total" echo "wrong pre create total"
exit 1 exit 1
...@@ -269,13 +269,13 @@ function token_create() { ...@@ -269,13 +269,13 @@ function token_create() {
echo "${hash}" echo "${hash}"
query_tx "${1}" "${hash}" query_tx "${1}" "${hash}"
${1} token get_finish_created ${1} token created
owner=$(${1} token get_finish_created | jq -r ".owner") owner=$(${1} token created | jq -r ".owner")
if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then
echo "wrong finish created owner" echo "wrong finish created owner"
exit 1 exit 1
fi fi
total=$(${1} token get_finish_created | jq -r ".total") total=$(${1} token created | jq -r ".total")
if [ "${total}" != 10000 ]; then if [ "${total}" != 10000 ]; then
echo "wrong finish created total" echo "wrong finish created total"
exit 1 exit 1
...@@ -398,13 +398,13 @@ function token_create_on_mainChain() { ...@@ -398,13 +398,13 @@ function token_create_on_mainChain() {
echo "MAIN_CLI is:" "${MAIN_CLI}" echo "MAIN_CLI is:" "${MAIN_CLI}"
query_tx "${MAIN_CLI}" "${hash}" query_tx "${MAIN_CLI}" "${hash}"
${CLI} token get_precreated ${CLI} token precreated
owner=$(${CLI} token get_precreated | jq -r ".owner") owner=$(${CLI} token precreated | jq -r ".owner")
if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then
echo "wrong pre create owner" echo "wrong pre create owner"
exit 1 exit 1
fi fi
total=$(${CLI} token get_precreated | jq -r ".total") total=$(${CLI} token precreated | jq -r ".total")
if [ "${total}" != 10000 ]; then if [ "${total}" != 10000 ]; then
echo "wrong pre create total" echo "wrong pre create total"
exit 1 exit 1
...@@ -415,13 +415,13 @@ function token_create_on_mainChain() { ...@@ -415,13 +415,13 @@ function token_create_on_mainChain() {
echo "${hash}" echo "${hash}"
query_tx "${MAIN_CLI}" "${hash}" query_tx "${MAIN_CLI}" "${hash}"
${CLI} token get_finish_created ${CLI} token created
owner=$(${CLI} token get_finish_created | jq -r ".owner") owner=$(${CLI} token created | jq -r ".owner")
if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then
echo "wrong finish created owner" echo "wrong finish created owner"
exit 1 exit 1
fi fi
total=$(${CLI} token get_finish_created | jq -r ".total") total=$(${CLI} token created | jq -r ".total")
if [ "${total}" != 10000 ]; then if [ "${total}" != 10000 ]; then
echo "wrong finish created total" echo "wrong finish created total"
exit 1 exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment