Commit dee470bc authored by vipwzw's avatar vipwzw

auto ci

parent e6cee5e5
......@@ -65,7 +65,6 @@ importPrivkey2() {
echo_rst "$FUNCNAME" "$?"
}
sendTransaction() {
ispara=$(echo '"'"${MAIN_HTTP}"'"' | jq '.|contains("8901")')
echo "ipara=$ispara"
......@@ -82,7 +81,6 @@ sendToExec() {
Chain33_SendToAddress "$from" "$hashlock_addr" 2000000000
}
queryBalance() {
addr=$1
req='"method":"Chain33.GetAllExecBalance","params":[{"addr":"'"${addr}"'"}]'
......@@ -92,7 +90,7 @@ queryBalance() {
ok=$(jq '(.error|not) and (.result != "")' <<<"$resp")
[ "$ok" == true ]
echo_rst "$FUNCNAME" "$?"
echo $resp|jq -r ".result"
echo $resp | jq -r ".result"
}
hashlock_lock() {
......@@ -235,7 +233,6 @@ init() {
echo "hashlock_addr=$hashlock_addr"
}
function run_test() {
#保存seed
......@@ -296,7 +293,6 @@ function run_test() {
queryBalance $addr_A
queryBalance $addr_B
#lock
hashlock_lock
......@@ -307,7 +303,6 @@ function run_test() {
#unlock failed
hashlock_unlock
#等待2个区块
block_wait 2
......
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