Skip to content

Commit

Permalink
revert WithdrawDelegationRewards err handle
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvubk committed Aug 27, 2024
1 parent fe63167 commit 98f70e9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions simapp/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ func (app *SimApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []
if err != nil {
panic(err)
}
_, err = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz)
if err != nil {
panic(err)
}
_, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz)
return false
})
if err != nil {
Expand All @@ -99,10 +96,7 @@ func (app *SimApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []
valAddr:= sdk.MustValAddressFromBech32(delegation.ValidatorAddress)
delAddr := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress)

_, err = app.DistrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr)
if err != nil {
panic(err)
}
_, _ = app.DistrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr)
}

// clear validator slash events
Expand Down

0 comments on commit 98f70e9

Please sign in to comment.