Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seth: debug: fix #812

Merged
merged 2 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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