Skip to content

Commit

Permalink
chore: tweaked popover comments in UI for two fields
Browse files Browse the repository at this point in the history
  updated misleading error message in node mgr.
  • Loading branch information
pbennett committed Oct 19, 2024
1 parent 10991b3 commit 112f545
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nodemgr/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (ac *RetiApp) initClients(ctx context.Context, cmd *cli.Command) error {
}

if ac.retiAppID == 0 {
return fmt.Errorf("the id of the Reti Validator contract must be set using either -id or RETI_APPID env var!")
return fmt.Errorf("the id of the Reti Validator contract must be set using either -retiid or RETI_APPID env var!")
}

// This will load and initialize mnemonics from the environment - and handles all 'local' signing for the app
Expand Down
2 changes: 1 addition & 1 deletion nodemgr/validatorcmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func DefineValidator() error {
return err
}

config.PercentToValidator, err = getInt("Enter the payout percentage to the validator (in four decimals, ie: 5% = 50000)", 50000, 0, 1000000)
config.PercentToValidator, err = getInt("Enter the commission percentage to the validator (in four decimals, ie: 5% = 50000)", 50000, 0, 1000000)
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions ui/src/components/AddValidatorForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ export function AddValidatorForm({ constraints }: AddValidatorFormProps) {
<FormLabel htmlFor="manager-input">
Manager account
<InfoPopover className={infoPopoverClassName} label="Manager account">
Account that triggers payouts and keyreg transactions (must sign
transactions)
Account that must be available to Node Daemon that triggers payouts and
keyreg transactions ('new' hot wallet)
</InfoPopover>
<span className="text-primary">*</span>
</FormLabel>
Expand Down Expand Up @@ -615,7 +615,7 @@ export function AddValidatorForm({ constraints }: AddValidatorFormProps) {
<FormLabel htmlFor="commission-percent-input">
Commission percent
<InfoPopover className={infoPopoverClassName} label="Commission percent">
Payout percentage w/ up to four decimals (e.g., 5.0001)
Commission percentage per-Epoch w/ up to four decimals (e.g., 5.0001)
</InfoPopover>
<span className="text-primary">*</span>
</FormLabel>
Expand Down

0 comments on commit 112f545

Please sign in to comment.