Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cosmos-sdk in v50 feature branch #4392

Merged
Prev Previous commit
Next Next commit
fix
  • Loading branch information
sontrinh16 committed Aug 21, 2023
commit 89faf367e06753a576b94446d3aa2e4856ee55be
2 changes: 1 addition & 1 deletion modules/core/02-client/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (suite *KeeperTestSuite) SetupTest() {

val.Status = stakingtypes.Bonded
val.Tokens = sdkmath.NewInt(rand.Int63())
validators = append(validators, val)
validators.Validators = append(validators.Validators, val)

hi := stakingtypes.NewHistoricalInfo(suite.ctx.BlockHeader(), validators, sdk.DefaultPowerReduction)
err = app.StakingKeeper.SetHistoricalInfo(suite.ctx, int64(i), &hi)
Expand Down
4 changes: 3 additions & 1 deletion testing/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ func (chain *TestChain) GetValsAtHeight(height int64) (*cmttypes.ValidatorSet, b
return nil, false
}

valSet := stakingtypes.Validators(histInfo.Valset)
valSet := stakingtypes.Validators{
Validators: histInfo.Valset,
}

tmValidators, err := testutil.ToCmtValidators(valSet, sdk.DefaultPowerReduction)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions testing/simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ func (app *SimApp) AutoCliOpts() autocli.AppOptions {
Modules: modules,
AddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
ValidatorAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
ConsensusAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
}
}

Expand Down