Commit 1448e30d authored by yingqiumin@126.com's avatar yingqiumin@126.com

improve rpc test

parent 8debac8c
...@@ -38,7 +38,7 @@ chain33_Http() { ...@@ -38,7 +38,7 @@ chain33_Http() {
chain33_DecodeRawTransactionTx() { chain33_DecodeRawTransactionTx() {
# txHex="$1" priKey="$2" MAIN_HTTP="$3" FUNCNAME="$4" # txHex="$1" priKey="$2" MAIN_HTTP="$3" FUNCNAME="$4"
req='{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'"$1"'"}]}' req='{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'"$1"'"}]}'
chain33_Http "$req" "$3" '(.result.txs[0].execer != null)' "$4" chain33_Http "$req" "$3" '(.result.txs[0].execer != "") and (.result.txs[0].execer != null)' "$4"
chain33_SignRawTx "$1" "$2" "$3" chain33_SignRawTx "$1" "$2" "$3"
chain33_BlockWait 1 "$3" chain33_BlockWait 1 "$3"
} }
......
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