Commit d32d7bec authored by harrylee's avatar harrylee Committed by vipwzw

make fmt

parent 52235c02
...@@ -241,9 +241,9 @@ function tx_wait() { ...@@ -241,9 +241,9 @@ function tx_wait() {
while true; do while true; do
txhash=$(${1} tx query -s "${2}" | jq ".tx.hash") txhash=$(${1} tx query -s "${2}" | jq ".tx.hash")
if [ "${txhash}" != "${req}" ]; then if [ "${txhash}" != "${req}" ]; then
count=$((count + 1)) count=$((count + 1))
echo "${txhash}" "${req}" "${count}" echo "${txhash}" "${req}" "${count}"
sleep 0.1 sleep 0.1
else else
RAW_TX_HASH=$txhash RAW_TX_HASH=$txhash
echo "====query tx=$RAW_TX_HASH success" echo "====query tx=$RAW_TX_HASH success"
...@@ -357,7 +357,7 @@ function transfer() { ...@@ -357,7 +357,7 @@ function transfer() {
echo "=========== # withdraw =============" echo "=========== # withdraw ============="
hash=$(${1} send coins transfer -a 2 -n deposit -t 1wvmD6RNHzwhY4eN75WnM6JcaAvNQ4nHx -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944) hash=$(${1} send coins transfer -a 2 -n deposit -t 1wvmD6RNHzwhY4eN75WnM6JcaAvNQ4nHx -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944)
echo "${hash}" echo "${hash}"
# block_wait "${1}" 2 # block_wait "${1}" 2
tx_wait "${1}" "${hash}" tx_wait "${1}" "${hash}"
before=$(${1} account balance -a 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt -e retrieve | jq -r ".balance") before=$(${1} account balance -a 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt -e retrieve | jq -r ".balance")
if [ "${before}" == "0.0000" ]; then if [ "${before}" == "0.0000" ]; then
...@@ -367,7 +367,7 @@ function transfer() { ...@@ -367,7 +367,7 @@ function transfer() {
hash=$(${1} send coins withdraw -a 1 -n withdraw -e retrieve -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944) hash=$(${1} send coins withdraw -a 1 -n withdraw -e retrieve -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944)
echo "${hash}" echo "${hash}"
# block_wait "${1}" 1 # block_wait "${1}" 1
tx_wait "${1}" "${hash}" tx_wait "${1}" "${hash}"
txs=$(${1} tx query_hash -s "${hash}" | jq ".txs") txs=$(${1} tx query_hash -s "${hash}" | jq ".txs")
if [ "${txs}" == "null" ]; then if [ "${txs}" == "null" ]; then
...@@ -377,7 +377,7 @@ function transfer() { ...@@ -377,7 +377,7 @@ function transfer() {
hash=$(${1} send coins transfer -a 1000 -n transfer -t 1E5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY -k 4257D8692EF7FE13C68B65D6A52F03933DB2FA5CE8FAF210B5B8B80C721CED01) hash=$(${1} send coins transfer -a 1000 -n transfer -t 1E5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY -k 4257D8692EF7FE13C68B65D6A52F03933DB2FA5CE8FAF210B5B8B80C721CED01)
echo "${hash}" echo "${hash}"
# block_wait "${1}" 1 # block_wait "${1}" 1
tx_wait "${1}" "${hash}" tx_wait "${1}" "${hash}"
} }
...@@ -412,7 +412,7 @@ function dapp_test_address() { ...@@ -412,7 +412,7 @@ function dapp_test_address() {
hash=$(${1} send coins transfer -a 8000 -n transfer -t 1PcGKYYoLn1PLLJJodc1UpgWGeFAQasAkx -k 2116459C0EC8ED01AA0EEAE35CAC5C96F94473F7816F114873291217303F6989) hash=$(${1} send coins transfer -a 8000 -n transfer -t 1PcGKYYoLn1PLLJJodc1UpgWGeFAQasAkx -k 2116459C0EC8ED01AA0EEAE35CAC5C96F94473F7816F114873291217303F6989)
echo "${hash}" echo "${hash}"
# block_wait "${1}" 1 # block_wait "${1}" 1
tx_wait "${1}" "${hash}" tx_wait "${1}" "${hash}"
} }
......
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