diff --git a/scripts/harb-evaluator/red-team.sh b/scripts/harb-evaluator/red-team.sh index 2358879..645fc56 100755 --- a/scripts/harb-evaluator/red-team.sh +++ b/scripts/harb-evaluator/red-team.sh @@ -747,12 +747,12 @@ log " lm_eth_after : $LM_ETH_AFTER wei" log "" BROKE=false -if python3 -c "import sys; sys.exit(0 if int('$LM_ETH_AFTER') < int('$LM_ETH_BEFORE') else 1)"; then +if python3 -c "import sys; sys.exit(0 if int('${LM_ETH_AFTER:-0}') < int('${LM_ETH_BEFORE:-0}') else 1)"; then BROKE=true fi if [[ "$BROKE" == "true" ]]; then - DELTA=$(python3 -c "print($LM_ETH_BEFORE - $LM_ETH_AFTER)") + DELTA=$(python3 -c "print(int('${LM_ETH_BEFORE:-0}') - int('${LM_ETH_AFTER:-0}'))") log " RESULT: ETH EXTRACTED ❌" log " Decrease: $DELTA wei" log ""