diff --git a/dblookupext/factory/historyRepositoryFactory.go b/dblookupext/factory/historyRepositoryFactory.go index db95838556e..2633e20c7d6 100644 --- a/dblookupext/factory/historyRepositoryFactory.go +++ b/dblookupext/factory/historyRepositoryFactory.go @@ -81,7 +81,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er return nil, err } - mbsStorer, err := hpf.store.GetStorer(dataRetriever.MetaBlockUnit) + miniBlocksStorer, err := hpf.store.GetStorer(dataRetriever.MiniBlockUnit) if err != nil { return nil, err } @@ -90,7 +90,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er hpf.marshalizer, esdtSuppliesStorer, txLogsStorer, - mbsStorer, + miniBlocksStorer, ) if err != nil { return nil, err diff --git a/dblookupext/factory/historyRepositoryFactory_test.go b/dblookupext/factory/historyRepositoryFactory_test.go index e3483dbb1e5..533c40531ff 100644 --- a/dblookupext/factory/historyRepositoryFactory_test.go +++ b/dblookupext/factory/historyRepositoryFactory_test.go @@ -89,11 +89,13 @@ func TestHistoryRepositoryFactory_CreateMissingStorersReturnsError(t *testing.T) t.Run("missing ESDTSuppliesUnit", testWithMissingStorer(dataRetriever.ESDTSuppliesUnit)) t.Run("missing TxLogsUnit", testWithMissingStorer(dataRetriever.TxLogsUnit)) + t.Run("missing MiniBlockUnit", testWithMissingStorer(dataRetriever.MiniBlockUnit)) t.Run("missing RoundHdrHashDataUnit", testWithMissingStorer(dataRetriever.RoundHdrHashDataUnit)) t.Run("missing MiniblocksMetadataUnit", testWithMissingStorer(dataRetriever.MiniblocksMetadataUnit)) t.Run("missing EpochByHashUnit", testWithMissingStorer(dataRetriever.EpochByHashUnit)) t.Run("missing MiniblockHashByTxHashUnit", testWithMissingStorer(dataRetriever.MiniblockHashByTxHashUnit)) t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ResultsHashesByTxHashUnit)) + t.Run("missing ExecutionResultsUnit", testWithMissingStorer(dataRetriever.ExecutionResultsUnit)) } func testWithMissingStorer(missingUnit dataRetriever.UnitType) func(t *testing.T) {