Skip to content

Commit

Permalink
fix: display the relevant information based on node type
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Sep 18, 2024
1 parent e444b76 commit 8f82ffc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/rollapp/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,15 @@ func PrintOutput(
msg = pterm.DefaultBasicText.WithStyle(
pterm.
FgGreen.ToStyle(),
).Sprintf("πŸ’ˆ The Rollapp sequencer is running on your local machine!")
).Sprintf("πŸ’ˆ The Rollapp %s is running on your local machine!", rlpCfg.NodeType)
} else {
msg = pterm.DefaultBasicText.WithStyle(
pterm.
FgRed.ToStyle(),
).Sprintf("❗ The Rollapp sequencer is in unhealthy state. Please check the logs for more information.")
).Sprintf(
"❗ The Rollapp %s is in unhealthy state. Please check the logs for more information.",
rlpCfg.NodeType,
)
}

fmt.Println(msg)
Expand Down Expand Up @@ -159,7 +162,7 @@ func PrintOutput(
pterm.DefaultSection.WithIndentCharacter("πŸ’ˆ").
Println("Wallet Info:")
fmt.Println("Sequencer Address:", seqAddrData[0].Address)
if withBalance {
if withBalance && rlpCfg.NodeType == "sequencer" {
fmt.Println("Sequencer Balance:", seqAddrData[0].Balance.String())
go func() {
for {
Expand Down

0 comments on commit 8f82ffc

Please sign in to comment.