Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 5, 2024
1 parent 369dbc6 commit ac18574
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/indexer/status_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func byHeight[T sdk.Model, F any](ctx context.Context, src storage.Filterable[T,

func (checker *statusChecker) addIndexedBlockToQueue(ctx context.Context, block storage.Block) error {
if block.InvokeCount > 0 {
tx, err := byHeight(ctx, checker.invoke, storage.InvokeFilter{
tx, err := byHeight[storage.Invoke, storage.InvokeFilter](ctx, checker.invoke, storage.InvokeFilter{
Height: storage.IntegerFilter{
Eq: block.Height,
},
Expand All @@ -189,7 +189,7 @@ func (checker *statusChecker) addIndexedBlockToQueue(ctx context.Context, block
return nil
}
if block.DeployCount > 0 {
tx, err := byHeight(ctx, checker.deploys, storage.DeployFilter{
tx, err := byHeight[storage.Deploy, storage.DeployFilter](ctx, checker.deploys, storage.DeployFilter{
Height: storage.IntegerFilter{
Eq: block.Height,
},
Expand All @@ -204,7 +204,7 @@ func (checker *statusChecker) addIndexedBlockToQueue(ctx context.Context, block
return nil
}
if block.DeployAccountCount > 0 {
tx, err := byHeight(ctx, checker.deployAccounts, storage.DeployAccountFilter{
tx, err := byHeight[storage.DeployAccount, storage.DeployAccountFilter](ctx, checker.deployAccounts, storage.DeployAccountFilter{
Height: storage.IntegerFilter{
Eq: block.Height,
},
Expand All @@ -219,7 +219,7 @@ func (checker *statusChecker) addIndexedBlockToQueue(ctx context.Context, block
return nil
}
if block.DeclareCount > 0 {
tx, err := byHeight(ctx, checker.declares, storage.DeclareFilter{
tx, err := byHeight[storage.Declare, storage.DeclareFilter](ctx, checker.declares, storage.DeclareFilter{
Height: storage.IntegerFilter{
Eq: block.Height,
},
Expand All @@ -234,7 +234,7 @@ func (checker *statusChecker) addIndexedBlockToQueue(ctx context.Context, block
return nil
}
if block.L1HandlerCount > 0 {
tx, err := byHeight(ctx, checker.l1Handlers, storage.L1HandlerFilter{
tx, err := byHeight[storage.L1Handler, storage.L1HandlerFilter](ctx, checker.l1Handlers, storage.L1HandlerFilter{
Height: storage.IntegerFilter{
Eq: block.Height,
},
Expand Down

0 comments on commit ac18574

Please sign in to comment.