Merge pull request 'fix: $FLOOR_BEFORE/$FLOOR_AFTER unquoted inside python3 -c string (#531)' (#666) from fix/issue-531 into master
This commit is contained in:
commit
5127e96ab3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue