Commit 8fa15865 authored by vipwzw's avatar vipwzw

auto ci

parent 12e355fc
...@@ -310,7 +310,7 @@ function trade_buyLimit() { ...@@ -310,7 +310,7 @@ function trade_buyLimit() {
queryTransaction ".error | not" "true" queryTransaction ".error | not" "true"
echo_rst "trade buyLimit queryExecRes" "$?" echo_rst "trade buyLimit queryExecRes" "$?"
buyID=$(curl -s --data-binary '{"jsonrpc":"2.0","id":2,"method":"Chain33.QueryTransaction","params":[{"hash":"'"${txHash}"'"}]}' -H 'content-type:text/plain;' ${MAIN_HTTP} | jq -r ".result.receipt.logs[1].log.base.buyID" | awk -F '-' '{print $4}') buyID=$(curl -s --data-binary '{"jsonrpc":"2.0","id":2,"method":"Chain33.QueryTransaction","params":[{"hash":"'"${txHash}"'"}]}' -H 'content-type:text/plain;' ${MAIN_HTTP} | jq -r ".result.receipt.logs[1].log.base.buyID" | awk -F '-' '{print $4}')
} }
function trade_sellMarket() { function trade_sellMarket() {
...@@ -332,7 +332,7 @@ function trade_sellMarket() { ...@@ -332,7 +332,7 @@ function trade_sellMarket() {
echo_rst "trade sellMarket queryExecRes" "$?" echo_rst "trade sellMarket queryExecRes" "$?"
} }
function trade_revokeBuy(){ function trade_revokeBuy() {
res=$(curl -s --data-binary '{"jsonrpc":"2.0","id":2,"method":"trade.CreateRawTradeRevokeTx","params":[{"sellID":"'"${sellID}"'","fee": 1}]}' -H 'content-type:text/plain;' ${MAIN_HTTP} | jq -r ".error | not") res=$(curl -s --data-binary '{"jsonrpc":"2.0","id":2,"method":"trade.CreateRawTradeRevokeTx","params":[{"sellID":"'"${sellID}"'","fee": 1}]}' -H 'content-type:text/plain;' ${MAIN_HTTP} | jq -r ".error | not")
if [ "${unsignedTx}" == "" ]; then if [ "${unsignedTx}" == "" ]; then
echo_rst "trade revokeBuy create tx" 1 echo_rst "trade revokeBuy create tx" 1
......
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