test: use correct key types when creating validators (#19255)

This commit is contained in:
Connor Davis
2024-01-25 20:59:40 +00:00
committed by GitHub
parent 8120a86eaa
commit 927ac38dc7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func (suite *SimTestSuite) SetupTest() {
// create validator (non random as using a seed)
createValidator := func() (*cmttypes.ValidatorSet, error) {
account := accounts[0]
cmtPk, err := cryptocodec.ToCmtPubKeyInterface(account.PubKey)
cmtPk, err := cryptocodec.ToCmtPubKeyInterface(account.ConsKey.PubKey())
if err != nil {
return nil, fmt.Errorf("failed to create pubkey: %w", err)
}