Skip to content

Commit

Permalink
Apply suggestions from code review #2384
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
  • Loading branch information
3 people committed Oct 20, 2020
1 parent 5741182 commit fc08be8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/guides/network_node/staking_guide.rst
Expand Up @@ -493,7 +493,7 @@ This can help to decrease gas consumption in some operations. To merge two stake
Remove unused sub-stake
***********************
Unused sub-stakes still cost some amount of gas while calculations.
Unused sub-stakes still cost some amount of gas during operations.
To remove unused sub-stake:
.. code:: bash
Expand Down
4 changes: 2 additions & 2 deletions nucypher/cli/commands/stake.py
Expand Up @@ -73,7 +73,7 @@
INSUFFICIENT_BALANCE_TO_CREATE, PROMPT_STAKE_CREATE_VALUE, PROMPT_STAKE_CREATE_LOCK_PERIODS,
ONLY_DISPLAYING_MERGEABLE_STAKES_NOTE, CONFIRM_MERGE, SUCCESSFUL_STAKES_MERGE, SUCCESSFUL_ENABLE_SNAPSHOTS,
SUCCESSFUL_DISABLE_SNAPSHOTS, CONFIRM_ENABLE_SNAPSHOTS,
CONFIRM_STAKE_USE_UNLOCKED, CONFIRM_REMOVE, SUCCESSFUL_STAKE_REMOVING)
CONFIRM_STAKE_USE_UNLOCKED, CONFIRM_REMOVE, SUCCESSFUL_STAKE_REMOVAL)
from nucypher.cli.options import (
group_options,
option_config_file,
Expand Down Expand Up @@ -1118,7 +1118,7 @@ def remove_unused(general_config: GroupGeneralConfig,
receipt = STAKEHOLDER.remove_unused_stake(stake=current_stake)

# Report
emitter.echo(SUCCESSFUL_STAKE_REMOVING, color='green', verbosity=1)
emitter.echo(SUCCESSFUL_STAKE_REMOVAL, color='green', verbosity=1)
paint_receipt_summary(emitter=emitter, receipt=receipt, chain_name=blockchain.client.chain_name)
paint_stakes(emitter=emitter, staker=STAKEHOLDER)

Expand Down
4 changes: 2 additions & 2 deletions nucypher/cli/literature.py
Expand Up @@ -271,9 +271,9 @@

SUCCESSFUL_STAKES_MERGE = 'Successfully Merged Stakes'

CONFIRM_REMOVE = "Publish removing of {stake_index} stake?"
CONFIRM_REMOVE = "Publish removal of {stake_index} stake?"

SUCCESSFUL_STAKE_REMOVING = 'Successfully Removed Stake'
SUCCESSFUL_STAKE_REMOVAL = 'Successfully Removed Stake'

#
# Rewards
Expand Down

0 comments on commit fc08be8

Please sign in to comment.