Commit 4e550880 authored by yukang's avatar yukang Committed by vipwzw

optimize some code for ci check

parent da1ce603
...@@ -339,7 +339,7 @@ function main() { ...@@ -339,7 +339,7 @@ function main() {
UNIT_HTTP=$1 UNIT_HTTP=$1
IS_PARA=$(echo '"'"${UNIT_HTTP}"'"' | jq '.|contains("8901")') IS_PARA=$(echo '"'"${UNIT_HTTP}"'"' | jq '.|contains("8901")')
if [ $# -eq 4 ]; then if [ $# -eq 4 ] && [ -n "$2" ] && [ -n "$3" ] && [ -n "$4" ]; then
#fromAddr 跨链资产转移地址 #fromAddr 跨链资产转移地址
local from_addr="$2" local from_addr="$2"
#privkey 地址签名 #privkey 地址签名
...@@ -352,7 +352,7 @@ function main() { ...@@ -352,7 +352,7 @@ function main() {
echo "=========== # start cross transfer monitor =============" echo "=========== # start cross transfer monitor ============="
while true; do while true; do
paracross_Transfer_Withdraw_Inner "$from_addr" "$privkey" "$paracross_addr" "$execer_name" paracross_Transfer_Withdraw_Inner "$from_addr" "$privkey" "$paracross_addr" "$execer_name"
chain33_BlockWait 1 ${UNIT_HTTP} chain33_BlockWait 1 "${UNIT_HTTP}"
done done
else else
echo "=========== # paracross rpc test =============" echo "=========== # paracross rpc test ============="
...@@ -365,6 +365,6 @@ function main() { ...@@ -365,6 +365,6 @@ function main() {
fi fi
} }
main $1 $2 $3 $4 main "$1" "$2" "$3" "$4"
#main http://127.0.0.1:8801 #main http://127.0.0.1:8801
#main http://47.98.253.127:8801 1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4 0x6da92a632ab7deb67d38c0f6560bcfed28167998f6496db64c258d5e8393a81b user.p.fzmtest.paracross #main http://47.98.253.127:8801 1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4 0x6da92a632ab7deb67d38c0f6560bcfed28167998f6496db64c258d5e8393a81b user.p.fzmtest.paracross
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