Skip to content

Commit

Permalink
Merge pull request #791 from dapphub/revert-to-wei
Browse files Browse the repository at this point in the history
Revert "use eth instead of wei as default for `seth --to-wei`"
  • Loading branch information
d-xo authored Sep 13, 2021
2 parents b8958a0 + 1ebfefd commit 229c26c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/seth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- `seth --to-wei` now uses eth instead of wei as the default unit for conversions
- `seth 4byte` command returns the response from querying [4byte.directory](https://www.4byte.directory/) for a given function signature
- `seth 4byte-decode` command queries 4byte.directory for matching function signatures, uses one to decode the calldata, and prints the decoded calldata
- `seth 4byte-event` command returns the response from querying 4byte.directory for a given event topic
Expand Down
2 changes: 1 addition & 1 deletion src/seth/libexec/seth/seth---to-wei
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
[[ $1 ]] || set -- "$(cat)"
[[ $1 ]] || seth --fail-usage "$0"
set -- "$*"
[[ $1 = *" "* ]] || set -- "$1 eth"
[[ $1 = *" "* ]] || set -- "$1 wei"
number=${1%% *} unit=${1#* }
# shellcheck disable=2018,2019
unit=$(tr A-Z a-z <<<"$unit")
Expand Down

0 comments on commit 229c26c

Please sign in to comment.