Skip to content

Commit

Permalink
Merge pull request #812 from dapphub/fix-seth-debug
Browse files Browse the repository at this point in the history
seth: debug: fix
  • Loading branch information
d-xo authored Oct 7, 2021
2 parents c3c761d + 955eab2 commit 9d3ca57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/seth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Address lookup no longer fails if `ETH_RPC_ACCOUNTS` is set, and `ETH_FROM` is an unchecksummed address
- Contract creations with Dynamic fee transactions
- `seth debug` correctly executes transactions

## [0.11.0] - 2021-09-08

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 9d3ca57

Please sign in to comment.