update token test shell
@@ -252,13 +252,13 @@ function token_create() {
echo "${hash}"
query_tx "${1}" "${hash}"
- ${1} token get_precreated
- owner=$(${1} token get_precreated | jq -r ".owner")
+ ${1} token precreated
+ owner=$(${1} token precreated | jq -r ".owner")
if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then
echo "wrong pre create owner"
exit 1
fi
- total=$(${1} token get_precreated | jq -r ".total")
+ total=$(${1} token precreated | jq -r ".total")
if [ "${total}" != 10000 ]; then
echo "wrong pre create total"
exit 1
@@ -269,13 +269,13 @@ function token_create() {
echo "${hash}"
query_tx "${1}" "${hash}"
- ${1} token get_finish_created
- owner=$(${1} token get_finish_created | jq -r ".owner")
+ ${1} token created
+ owner=$(${1} token created | jq -r ".owner")
if [ "${owner}" != "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4" ]; then
echo "wrong finish created owner"
exit 1
fi
- total=$(${1} token get_finish_created | jq -r ".total")
+ total=$(${1} token created | jq -r ".total")
if [ "${total}" != 10000 ]; then
echo "wrong finish created total"
exit 1
@@ -398,13 +398,13 @@ function token_create_on_mainChain() {
echo "MAIN_CLI is:" "${MAIN_CLI}"
query_tx "${MAIN_CLI}" "${hash}"
- ${CLI} token get_precreated
- owner=$(${CLI} token get_precreated | jq -r ".owner")
+ ${CLI} token precreated
+ owner=$(${CLI} token precreated | jq -r ".owner")
if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then
echo "wrong pre create owner"
exit 1
fi
- total=$(${CLI} token get_precreated | jq -r ".total")
+ total=$(${CLI} token precreated | jq -r ".total")
if [ "${total}" != 10000 ]; then
echo "wrong pre create total"
exit 1
@@ -415,13 +415,13 @@ function token_create_on_mainChain() {
echo "${hash}"
query_tx "${MAIN_CLI}" "${hash}"
- ${CLI} token get_finish_created
- owner=$(${CLI} token get_finish_created | jq -r ".owner")
+ ${CLI} token created
+ owner=$(${CLI} token created | jq -r ".owner")
if [ "${owner}" != "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" ]; then
echo "wrong finish created owner"
exit 1
fi
- total=$(${CLI} token get_finish_created | jq -r ".total")
+ total=$(${CLI} token created | jq -r ".total")
if [ "${total}" != 10000 ]; then
echo "wrong finish created total"
exit 1
