Skip to content

Commit

Permalink
fix test scripts for using raw amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jun 24, 2024
1 parent fc5649f commit 9bb561b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion e2e/namada-gaia-simple-transfers
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ echo "==== Balances on Gaia ===="
balance=$(gaiad query bank balances ${gaia_user})
echo "${balance}"
balance=$(echo "${balance}" | grep ibc -B 1 | tr -d '\n')
if [[ "${balance}" != *"- amount: \"200\" denom: ibc/"* ]]; then
if [[ "${balance}" != *"- amount: \"200000000\" denom: ibc/"* ]]; then
echo "The balance on Gaia is wrong"
exit 1
fi
Expand Down
22 changes: 11 additions & 11 deletions e2e/namada-simple-transfers
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner relayer \
--node ${LEDGER_ADDR_B})
echo ${balance}
if [ "${balance}" != "${IBC_TOKEN}: 100" ]; then
if [ "${balance}" != "${IBC_TOKEN}: 100000000" ]; then
echo "The balance on chain B is wrong"
exit 1
fi
Expand All @@ -171,7 +171,7 @@ ${NAMADAC} --base-dir ${base_dir_b} ibc-transfer \
--source relayer \
--receiver ${receiver_a} \
--token ${IBC_TOKEN} \
--amount 50 \
--amount 50000000 \
--signing-keys relayer \
--channel-id channel-0 \
--node ${LEDGER_ADDR_B}
Expand Down Expand Up @@ -209,7 +209,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner relayer \
--node ${LEDGER_ADDR_B})
echo ${balance}
if [ "${balance}" != "${IBC_TOKEN}: 50" ]; then
if [ "${balance}" != "${IBC_TOKEN}: 50000000" ]; then
echo "The balance on chain B is wrong"
exit 1
fi
Expand Down Expand Up @@ -257,7 +257,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_a} balance \
--owner relayer \
--node ${LEDGER_ADDR_A})
echo ${balance}
if [ "${balance}" != "${IBC_TOKEN}: 300" ]; then
if [ "${balance}" != "${IBC_TOKEN}: 300000000" ]; then
echo "The balance on chain A is wrong"
exit 1
fi
Expand All @@ -278,7 +278,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner relayer \
--node ${LEDGER_ADDR_B})
echo ${balance}
if [ "${balance}" != "${IBC_TOKEN}: 250" ]; then
if [ "${balance}" != "${IBC_TOKEN}: 250000000" ]; then
echo "The balance on chain B is wrong"
exit 1
fi
Expand Down Expand Up @@ -321,7 +321,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner ${SHIELDED_ALIAS_B} \
--node ${LEDGER_ADDR_B})
echo "${balance}"
if [[ "${balance}" != *"${IBC_TOKEN}: 100" ]]; then
if [[ "${balance}" != *"${IBC_TOKEN}: 100000000" ]]; then
echo "The balance of shielded_b on chain B is wrong"
exit 1
fi
Expand All @@ -331,7 +331,7 @@ ${NAMADAC} --base-dir ${base_dir_b} transfer \
--source ${SHIELDED_ALIAS_B} \
--target ${payment_addr_b_2} \
--token ${IBC_TOKEN} \
--amount 50 \
--amount 50000000 \
--signing-keys relayer \
--node ${LEDGER_ADDR_B}

Expand All @@ -344,7 +344,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner ${SHIELDED_ALIAS_B} \
--node ${LEDGER_ADDR_B})
echo "${balance}"
if [[ "${balance}" != *"${IBC_TOKEN}: 50" ]]; then
if [[ "${balance}" != *"${IBC_TOKEN}: 50000000" ]]; then
echo "The balance of shielded_b on chain B is wrong"
exit 1
fi
Expand All @@ -358,7 +358,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner ${SHIELDED_ALIAS_B_2} \
--node ${LEDGER_ADDR_B})
echo "${balance}"
if [[ "${balance}" != *"${IBC_TOKEN}: 50" ]]; then
if [[ "${balance}" != *"${IBC_TOKEN}: 50000000" ]]; then
echo "The balance of shielded_b_2 on chain B is wrong"
exit 1
fi
Expand All @@ -368,7 +368,7 @@ ${NAMADAC} --base-dir ${base_dir_b} ibc-transfer \
--source ${SHIELDED_ALIAS_B_2} \
--receiver ${payment_addr_a} \
--token ${IBC_TOKEN} \
--amount 50 \
--amount 50000000 \
--signing-keys relayer \
--channel-id channel-0 \
--node ${LEDGER_ADDR_B}
Expand Down Expand Up @@ -396,7 +396,7 @@ balance=$(${NAMADAC} --base-dir ${base_dir_b} balance \
--owner ${SHIELDED_ALIAS_B} \
--node ${LEDGER_ADDR_B})
echo "${balance}"
if [[ "${balance}" != *"${IBC_TOKEN}: 50" ]]; then
if [[ "${balance}" != *"${IBC_TOKEN}: 50000000" ]]; then
echo "The balance of shielded_b on chain B is wrong"
exit 1
fi
Expand Down

0 comments on commit 9bb561b

Please sign in to comment.