Skip to content

Commit

Permalink
update tx query in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj327 committed Nov 23, 2023
1 parent b36a0fe commit a30d53c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTUSER_ADDRESS=$(showAddress testuser2)
TXRESULT=$(sekaid tx bank send validator $TESTUSER_ADDRESS 5ukex --keyring-backend=test --chain-id=$NETWORK_NAME --fees 100ukex --broadcast-mode=async --output=json --yes --home=$SEKAID_HOME 2> /dev/null || exit 1)
BLOCK_HASH=$(echo $TXRESULT | jsonQuickParse "txhash")
sleep 5
TXQUERYRESULT=$(sekaid query tx $BLOCK_HASH 2> /dev/null || exit 1)
TXQUERYRESULT=$(sekaid query tx $BLOCK_HASH --chain-id=$NETWORK_NAME --output=json --home=$SEKAID_HOME 2> /dev/null || exit 1)
BLOCK_HEIGHT=$(echo $TXQUERYRESULT | jsonQuickParse "height")

INTERX_GATEWAY="127.0.0.1:11000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTUSER_ADDRESS=$(showAddress testuser3)
TXRESULT=$(sekaid tx bank send validator $TESTUSER_ADDRESS 5ukex --keyring-backend=test --chain-id=$NETWORK_NAME --fees 100ukex --broadcast-mode=async --output=json --yes --home=$SEKAID_HOME 2> /dev/null || exit 1)
TX_HASH=$(echo $TXRESULT | jsonQuickParse "txhash")
sleep 5
TXQUERYRESULT=$(sekaid query tx $TX_ID 2> /dev/null || exit 1)
TXQUERYRESULT=$(sekaid query tx $TX_ID --chain-id=$NETWORK_NAME --output=json --home=$SEKAID_HOME 2> /dev/null || exit 1)
BLOCK_HEIGHT=$(echo $TXQUERYRESULT | jsonQuickParse "height")

INTERX_GATEWAY="127.0.0.1:11000"
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-local/Transactions/query-blocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTUSER_ADDRESS=$(showAddress testuser4)
TXRESULT=$(sekaid tx bank send validator $TESTUSER_ADDRESS 5ukex --keyring-backend=test --chain-id=$NETWORK_NAME --fees 100ukex --broadcast-mode=async --output=json --yes --home=$SEKAID_HOME 2> /dev/null || exit 1)
TX_ID=$(echo $TXRESULT | jsonQuickParse "txhash")
sleep 5
TXQUERYRESULT=$(sekaid query tx $TX_ID 2> /dev/null || exit 1)
TXQUERYRESULT=$(sekaid query tx $TX_ID --chain-id=$NETWORK_NAME --output=json --home=$SEKAID_HOME 2> /dev/null || exit 1)
BLOCK_HEIGHT=$(echo $TXQUERYRESULT | jsonQuickParse "height")

INTERX_GATEWAY="127.0.0.1:11000"
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-local/Transactions/transaction-hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTUSER_ADDRESS=$(showAddress testuser8)
TXRESULT=$(sekaid tx bank send validator $TESTUSER_ADDRESS 5ukex --keyring-backend=test --chain-id=$NETWORK_NAME --fees 100ukex --broadcast-mode=async --output=json --yes --home=$SEKAID_HOME 2> /dev/null || exit 1)
TX_ID=$(echo $TXRESULT | jsonQuickParse "txhash")
sleep 5
TXQUERYRESULT=$(sekaid query tx $TX_ID 2> /dev/null || exit 1)
TXQUERYRESULT=$(sekaid query tx $TX_ID --chain-id=$NETWORK_NAME --output=json --home=$SEKAID_HOME 2> /dev/null || exit 1)
BLOCK_HEIGHT=$(echo $TXQUERYRESULT | jsonQuickParse "height")
echo $TX_ID
echo $BLOCK_HEIGHT
Expand Down

0 comments on commit a30d53c

Please sign in to comment.