Skip to content

Commit

Permalink
test(delayedack): Add simulation tests for rollapp finalization (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 authored Jul 30, 2024
1 parent f52403e commit 48cf96e
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 100 deletions.
3 changes: 1 addition & 2 deletions x/rollapp/keeper/block_height_to_finalization_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ func (k *Keeper) finalizePendingState(ctx sdk.Context, stateInfoIndex types.Stat
// update the LatestStateInfoIndex of the rollapp
k.SetLatestFinalizedStateIndex(ctx, stateInfoIndex)
// call the after-update-state hook
keeperHooks := k.GetHooks()
err := keeperHooks.AfterStateFinalized(ctx, stateInfoIndex.RollappId, &stateInfo)
err := k.GetHooks().AfterStateFinalized(ctx, stateInfoIndex.RollappId, &stateInfo)
if err != nil {
return fmt.Errorf("after state finalized: %w", err)
}
Expand Down
Loading

0 comments on commit 48cf96e

Please sign in to comment.