regen-ledger icon indicating copy to clipboard operation
regen-ledger copied to clipboard

add-genesis-account not using configured keyring-backend

Open ryanchristo opened this issue 2 years ago • 0 comments

Summary of Bug

The add-genesis-account command is defined within each application. If keying backend is set using regen config, it should be possible to run the add-genesis-account command without explicitly setting the --keyring-backend flag.

Version

v4.0.0

Steps to Reproduce

regen init validator --chain-id test
regen config keyring-backend test
regen keys add test
regen add-genesis-account test 1000000000stake

Receive the following error:

Error: failed to get address from Keybase: validator.info: key not found [regen-network/[email protected]/crypto/keyring/keyring.go:465]

Run with the flag and no error:

regen add-genesis-account test 1000000000stake --keyring-backend test

For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

ryanchristo avatar Aug 10 '22 19:08 ryanchristo