ok=$(jq '(.execer == "'$exec'") and ((.payload.transfer.to) == "'$to'")'<<<"$data")
ok=$(jq '(.payload.transfer.amount == "'$amount'") and ((.payload.transfer.to) == "'$to'")'<<<"$data")
["$ok"==true]
["$ok"==true]
rst=$?
rst=$?
...
@@ -537,12 +541,25 @@ chain33_SendTransaction() {
...
@@ -537,12 +541,25 @@ chain33_SendTransaction() {
chain33_CreateNoBalanceTransaction(){
chain33_CreateNoBalanceTransaction(){
local to="1EDDghAtgBsamrNEtNmYdQzC1QEhLkr87t"
local to="1EDDghAtgBsamrNEtNmYdQzC1QEhLkr87t"
local txHex="0a05636f696e73122d18010a291080ade20422223145444467684174674273616d724e45744e6d5964517a43315145684c6b7238377420a08d0630a1938af2e88e97fb0d3a223145444467684174674273616d724e45744e6d5964517a43315145684c6b72383774"
ok=$(jq '(.error|not) and (.result.txs[0].execer == "none") and (.result.txs[0].groupCount == 2) and (.result.txs[1].execer == "coins") and (.result.txs[1].groupCount == 2) and (.result.txs[1].to == "'$to'")'<<<"$data")
ok=$(jq '(.error|not) and (.result.txs[0].execer == "'$exec'") and (.result.txs[0].groupCount == 2) and (.result.txs[1].execer == "'$coinexec'") and (.result.txs[1].groupCount == 2) and (.result.txs[1].to == "'$to'")'<<<"$data")