Commit e7b45264 authored by linj's avatar linj Committed by vipwzw

fix unfreeze rpc test: not depond on tx receipt

parent a11820c4
...@@ -25,9 +25,7 @@ function query_unfreezeID() { ...@@ -25,9 +25,7 @@ function query_unfreezeID() {
exit 1 exit 1
fi fi
else else
unfreeze_id=$(jq '(.result.receipt.logs['"$uid_index"'].log.current.unfreezeID)' <<<"$ret") uid=${tx#0x}
unfreeze_id2=${unfreeze_id#\"mavl-unfreeze-}
uid=${unfreeze_id2%\"}
echo -e "${GRE}====query tx=$txhash success${NOC}" echo -e "${GRE}====query tx=$txhash success${NOC}"
break break
fi fi
...@@ -38,7 +36,6 @@ function init() { ...@@ -38,7 +36,6 @@ function init() {
ispara=$(echo '"'"${MAIN_HTTP}"'"' | jq '.|contains("8901")') ispara=$(echo '"'"${MAIN_HTTP}"'"' | jq '.|contains("8901")')
echo "ipara=$ispara" echo "ipara=$ispara"
exec_name="unfreeze" exec_name="unfreeze"
uid_index=2
symbol="bty" symbol="bty"
beneficiary_key=0xa2ec1c6274723c021daa8792f4d0d52ffa0eff0fd47c9c6c1d1dd618762dc178 beneficiary_key=0xa2ec1c6274723c021daa8792f4d0d52ffa0eff0fd47c9c6c1d1dd618762dc178
...@@ -55,7 +52,6 @@ function init() { ...@@ -55,7 +52,6 @@ function init() {
if [ "$ispara" == true ]; then if [ "$ispara" == true ]; then
exec_name="user.p.para."${exec_name} exec_name="user.p.para."${exec_name}
uid_index=1
symbol="para" symbol="para"
local main_ip=${MAIN_HTTP//8901/8801} local main_ip=${MAIN_HTTP//8901/8801}
......
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