Skip to content

Commit daf5c49

Browse files
Merge pull request #7902 from multiversx/supplies-processor-wiring-fix
supplies processor fix
2 parents 078c37b + 8ab6483 commit daf5c49

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dblookupext/factory/historyRepositoryFactory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er
8181
return nil, err
8282
}
8383

84-
mbsStorer, err := hpf.store.GetStorer(dataRetriever.MetaBlockUnit)
84+
miniBlocksStorer, err := hpf.store.GetStorer(dataRetriever.MiniBlockUnit)
8585
if err != nil {
8686
return nil, err
8787
}
@@ -90,7 +90,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er
9090
hpf.marshalizer,
9191
esdtSuppliesStorer,
9292
txLogsStorer,
93-
mbsStorer,
93+
miniBlocksStorer,
9494
)
9595
if err != nil {
9696
return nil, err

dblookupext/factory/historyRepositoryFactory_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ func TestHistoryRepositoryFactory_CreateMissingStorersReturnsError(t *testing.T)
8989

9090
t.Run("missing ESDTSuppliesUnit", testWithMissingStorer(dataRetriever.ESDTSuppliesUnit))
9191
t.Run("missing TxLogsUnit", testWithMissingStorer(dataRetriever.TxLogsUnit))
92+
t.Run("missing MiniBlockUnit", testWithMissingStorer(dataRetriever.MiniBlockUnit))
9293
t.Run("missing RoundHdrHashDataUnit", testWithMissingStorer(dataRetriever.RoundHdrHashDataUnit))
9394
t.Run("missing MiniblocksMetadataUnit", testWithMissingStorer(dataRetriever.MiniblocksMetadataUnit))
9495
t.Run("missing EpochByHashUnit", testWithMissingStorer(dataRetriever.EpochByHashUnit))
9596
t.Run("missing MiniblockHashByTxHashUnit", testWithMissingStorer(dataRetriever.MiniblockHashByTxHashUnit))
9697
t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ResultsHashesByTxHashUnit))
98+
t.Run("missing ExecutionResultsUnit", testWithMissingStorer(dataRetriever.ExecutionResultsUnit))
9799
}
98100

99101
func testWithMissingStorer(missingUnit dataRetriever.UnitType) func(t *testing.T) {

0 commit comments

Comments
 (0)