diff --git a/cli_test/cli_test.go b/cli_test/cli_test.go index 9a5a742a..e09b48a7 100644 --- a/cli_test/cli_test.go +++ b/cli_test/cli_test.go @@ -397,8 +397,9 @@ func TestKavaCLICreateValidator(t *testing.T) { barAddr := f.KeyAddress(keyBar) barVal := sdk.ValAddress(barAddr) - consPubKey, err := sdk.Bech32ifyPubKey(sdk.Bech32PubKeyTypeAccPub, ed25519.GenPrivKey().PubKey()) + consPubKey, err := sdk.Bech32ifyPubKey(sdk.Bech32PubKeyTypeValPub, ed25519.GenPrivKey().PubKey()) require.NoError(t, err) + require.NotEmpty(t, consPubKey) sendTokens := sdk.TokensFromConsensusPower(10) f.TxSend(keyFoo, barAddr, sdk.NewCoin(denom, sendTokens), "-y") diff --git a/cli_test/test_helpers.go b/cli_test/test_helpers.go index 1470a81c..b4e06774 100644 --- a/cli_test/test_helpers.go +++ b/cli_test/test_helpers.go @@ -66,7 +66,7 @@ func init() { // set the address prefixes config := sdk.GetConfig() app.SetBech32AddressPrefixes(config) - config.Seal() + // config.Seal() } //___________________________________________________________________________________