Skip to content

Commit

Permalink
[release-v2.0] walletsetup: Return birthday prompt error.
Browse files Browse the repository at this point in the history
Backport of 62ec945.
  • Loading branch information
JoeGruffins authored and jrick committed Jun 19, 2024
1 parent 7830dd6 commit 37e81f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion walletsetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ func createWallet(ctx context.Context, cfg *config) error {
// Ask for a birthday if the wallet was created from seed. If
// the wallet is new the birthday is now. Add a day buffer to be safe.
if imported {
birthday, birthblock, err := prompt.Birthday(r)
var (
birthday *time.Time
birthblock *uint32
)
birthday, birthblock, err = prompt.Birthday(r)
if errors.Is(err, io.EOF) {
err = nil
}
if err != nil {
return
}
Expand Down

0 comments on commit 37e81f8

Please sign in to comment.