Skip to content

forest-wallet set-default fails when only one address exist #7018

@sudo-shashank

Description

@sudo-shashank

Describe the bug

forest-wallet set-default fails with Error: Key info not found when the target address is the only key in the keystore.

To reproduce

  • Start with an empty local keystore(forest-wallet list shows no addresses).
  • Create a new wallet address or Import a wallet.
  • Try to set it as default: forest-wallet set-default t1…. and see error: Error: Key info not found.

Log output

Expected behaviour

  • Set default should work even if there is only one wallet address.

Screenshots

Image

Environment (please complete the following information):

Other information and links

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions