Skip to content

fix(cli): fix broken testnet subcommands#337

Merged
giunatale merged 3 commits into
mainfrom
giunatale/fix/testnet
May 18, 2026
Merged

fix(cli): fix broken testnet subcommands#337
giunatale merged 3 commits into
mainfrom
giunatale/fix/testnet

Conversation

@giunatale
Copy link
Copy Markdown
Collaborator

Closes #335.

Two unrelated bugs in cmd/atomoned/cmd/testnet.go left both testnet subcommands unusable post sdk v0.50.x migration:

  • testnet init-files passed the account address codec to genutil.GenAppStateFromConfig, which uses it to decode each gentx's validator operator address. This caused hrp does not match bech32 prefix: expected 'atone' got 'atonevaloper'. Switched to ValidatorAddressCodec() (matches simapp).

  • testnet start panicked in NewTestNetworkFixture with pattern contains path separator because atomone.DefaultNodeHome (a full path) was being passed as the os.MkdirTemp pattern. Now passes filepath.Base(atomone.DefaultNodeHome) (resolving to .atomone).

@giunatale giunatale merged commit ad79ec3 into main May 18, 2026
14 checks passed
@giunatale giunatale deleted the giunatale/fix/testnet branch May 18, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI bug: testnet command can't generate configuration for local validators on version 4.0.0-rc1

3 participants