This repository was archived by the owner on Aug 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func (transformer Transformer) ContractAddress() common.Address {
42
42
}
43
43
44
44
func (transformer Transformer ) Execute (diff utils.StorageDiff ) error {
45
- metadata , lookupErr := transformer .Mappings .Lookup (diff )
45
+ metadata , lookupErr := transformer .Mappings .Lookup (diff . StorageKey )
46
46
if lookupErr != nil {
47
47
return lookupErr
48
48
}
Original file line number Diff line number Diff line change 17
17
package mocks
18
18
19
19
import (
20
+ "github.com/ethereum/go-ethereum/common"
21
+
20
22
"github.com/vulcanize/vulcanizedb/libraries/shared/storage/utils"
21
23
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
22
24
)
@@ -27,7 +29,7 @@ type MockMappings struct {
27
29
LookupErr error
28
30
}
29
31
30
- func (mappings * MockMappings ) Lookup (diff utils. StorageDiff ) (utils.StorageValueMetadata , error ) {
32
+ func (mappings * MockMappings ) Lookup (key common. Hash ) (utils.StorageValueMetadata , error ) {
31
33
mappings .LookupCalled = true
32
34
return mappings .Metadata , mappings .LookupErr
33
35
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
)
28
28
29
29
type Mappings interface {
30
- Lookup (diff utils. StorageDiff ) (utils.StorageValueMetadata , error )
30
+ Lookup (key common. Hash ) (utils.StorageValueMetadata , error )
31
31
SetDB (db * postgres.DB )
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments