Commit d8b9cb10 authored by QM's avatar QM

up

parent 0b85ba46
...@@ -124,10 +124,11 @@ function TestETH2Chain33Assets_proxy() { ...@@ -124,10 +124,11 @@ function TestETH2Chain33Assets_proxy() {
echo -e "${Blue} ethValidatorAddrp ethereum 代理地址 withdraw 后金额 ${NOC}" echo -e "${Blue} ethValidatorAddrp ethereum 代理地址 withdraw 后金额 ${NOC}"
result=$(${CLIA} ethereum balance -o "${ethValidatorAddrp}" | jq -r ".balance") result=$(${CLIA} ethereum balance -o "${ethValidatorAddrp}" | jq -r ".balance")
# shellcheck disable=SC2219 # shellcheck disable=SC2219
let ethPBalanceEnd=${ethPBalancebf}-${lockAmount1}+1-${result} let ethPBalanceEnd=${ethPBalancebf}-${lockAmount1}+1
if [[ $ethPBalanceEnd -gt 1 ]]; then
echo -e "${RED}error $ethPBalanceEnd 大于 1, 应该小于 1 扣了一点点手续费 ${NOC}" if [ "$(echo "$ethPBalanceEnd < $result" | bc)" -eq 1 ]; then
exit_test echo -e "${RED}error $ethPBalanceEnd 小于 $result, 应该大于 $ethPBalanceEnd 扣了一点点手续费 ${NOC}"
# exit 1
fi fi
echo -e "${GRE}=========== $FUNCNAME end ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME end ===========${NOC}"
......
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