diff --git a/x/staking/simulation/operations.go b/x/staking/simulation/operations.go index 966998ed54cf..54e8cc032bb4 100644 --- a/x/staking/simulation/operations.go +++ b/x/staking/simulation/operations.go @@ -537,9 +537,8 @@ func SimulateMsgBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, k k } } - // if simaccount.PrivKey == nil, delegation address does not exist in accs. Return error if simAccount.PrivKey == nil { - return simtypes.NoOpMsg(types.ModuleName, types.TypeMsgBeginRedelegate, "account private key is nil"), nil, fmt.Errorf("delegation addr: %s does not exist in simulation accounts", delAddr) + return simtypes.NoOpMsg(types.ModuleName, types.TypeMsgBeginRedelegate, "account private key is nil"), nil, nil } account := ak.GetAccount(ctx, delAddr)