Skip to content

Commit cbc1c86

Browse files
authored
docs(serve): detailed account logs (ignite#742)
closes ignite#740.
1 parent dc25f45 commit cbc1c86

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

starport/services/chain/init.go

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,20 @@ func (c *Chain) InitAccounts(ctx context.Context, conf conf.Config) error {
134134
}
135135

136136
if account.Address == "" {
137-
fmt.Fprintf(c.stdLog(logStarport).out, "🙂 Created an account. Password (mnemonic): %[1]v\n", generatedAccount.Mnemonic)
137+
fmt.Fprintf(
138+
c.stdLog(logStarport).out,
139+
"🙂 Created account %q with address %q with mnemonic: %q\n",
140+
generatedAccount.Name,
141+
generatedAccount.Address,
142+
generatedAccount.Mnemonic,
143+
)
138144
} else {
139-
fmt.Fprintf(c.stdLog(logStarport).out, "🙂 Imported an account. Address: %[1]v\n", account.Address)
145+
fmt.Fprintf(
146+
c.stdLog(logStarport).out,
147+
"🙂 Imported an account %q with address: %q\n",
148+
account.Name,
149+
account.Address,
150+
)
140151
}
141152
}
142153

0 commit comments

Comments
 (0)