Skip to content

Commit

Permalink
seth: debug: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo committed Sep 22, 2021
1 parent 34bb005 commit faa303a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/seth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

Contract creations with Dynamic fee transactions.

- Contract creations with Dynamic fee transactions.
- `seth debug` correctly executes transactions.

### Changed

Expand Down
4 changes: 2 additions & 2 deletions src/seth/libexec/seth/seth-debug
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ for i in "${txs[@]}"; do

if [[ "$1" = "$hash" ]]; then
echo -e >&2 "\r${0##*/}: info: transaction ($j/$index)"
seth run-tx "$tx" --state "$state" --debug "${opts[@]}"
seth run-tx "$hash" --state "$state" --debug "${opts[@]}"
tidy
break
else
[[ $SETH_VERBOSE ]] &&
echo -e >&2 "\r${0##*/}: info: transaction ($j/$index)" ||
echo -en >&2 "\r${0##*/}: info: transaction ($j/$index)"
# exit code 2 means REVERT or otherwise acceptable failure
seth run-tx "$tx" --state "$state" --timestamp "$timestamp" > /dev/null ||
seth run-tx "$hash" --state "$state" --timestamp "$timestamp" > /dev/null ||
[[ $? == 2 ]] ||
(tidy; echo ""; seth --fail "${0##*/}: error: hevm error while executing tx: $hash")
j=$((j + 1))
Expand Down

0 comments on commit faa303a

Please sign in to comment.