Revert "Update Mappings interface to take a diff as an argument to Lookup"

This reverts commit cda646b78ceb6714b132891ea4489a8ff4fc95e9.
This commit is contained in:
Rob Mulholand
2019-09-25 16:34:31 -05:00
committed by Elizabeth Engelman
parent 8111f4ec5e
commit f574407bb6
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -17,6 +17,8 @@
package mocks
import (
"github.com/ethereum/go-ethereum/common"
"github.com/vulcanize/vulcanizedb/libraries/shared/storage/utils"
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
)
@@ -27,7 +29,7 @@ type MockMappings struct {
LookupErr error
}
func (mappings *MockMappings) Lookup(diff utils.StorageDiff) (utils.StorageValueMetadata, error) {
func (mappings *MockMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error) {
mappings.LookupCalled = true
return mappings.Metadata, mappings.LookupErr
}