Skip to content

Commit

Permalink
"Not a registered wallet on chain" information removed from Wallet li…
Browse files Browse the repository at this point in the history
…sting
  • Loading branch information
Scitz0 committed Jul 8, 2020
1 parent ba2dc9e commit acba42d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 4 additions & 2 deletions docs/Scripts/cntools-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ and this adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Changed
- op-cert creation moved from `Pool >> New` to `Pool >> Register`.
- Removed enterprise wallet upgrade option in `Wallet >> List`
- Output changed in various places throughout.
- Include reward in delegators stake.
- Release now include patch version in addition to major and minor version.
In-app update modified to reflect this change.


### Removed
- Enterprise wallet upgrade option in `Wallet >> List`
- `Not a registered wallet on chain` information from Wallet listing

### Fixed
- meta_json_url check
Expand Down
11 changes: 3 additions & 8 deletions scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ case $OPERATION in
continue
fi
getRewards ${wallet_name}
if [[ "${reward_lovelace}" -eq -1 ]]; then
say "${ORANGE}Not a registered wallet on chain${NC}"
else
if [[ "${reward_lovelace}" -ge 0 ]]; then
say "$(printf "%s\t\t\t${CYAN}%s${NC} ADA" "Rewards" "$(numfmt --grouping ${reward_ada})")" "log"
delegation_pool_id=$(jq -r '.delegation // empty' <<< "${stakeAddressInfo}")
if [[ -n ${delegation_pool_id} ]]; then
Expand Down Expand Up @@ -296,11 +294,8 @@ case $OPERATION in
say "$(printf "%-19s : %s" "Enterprise Address" "${pay_addr}")" "log"
say "$(printf "%-19s : ${CYAN}%s${NC} ADA" "Enterprise Funds" "$(numfmt --grouping ${pay_ada})")" "log"
getRewards ${wallet_name}
if [[ "${reward_lovelace}" -eq -1 ]]; then
say ""
say "${ORANGE}Not a registered wallet on chain${NC}"
else
say "$(printf "%-8s : ${CYAN}%s${NC} ADA" "Rewards" "$(numfmt --grouping ${reward_ada})")" "log"
if [[ "${reward_lovelace}" -ge 0 ]]; then
say "$(printf "%-19s : ${CYAN}%s${NC} ADA" "Rewards" "$(numfmt --grouping ${reward_ada})")" "log"
delegation_pool_id=$(jq -r '.delegation // empty' <<< "${stakeAddressInfo}")
if [[ -n ${delegation_pool_id} ]]; then
unset poolName
Expand Down

0 comments on commit acba42d

Please sign in to comment.