11dd641a84
- If we recognize a storage diff as coming from a watched contract but don't recognize the key, queue it for retrying later (after we've seen an event that might help us recognize the key) - Remove unused errs and args - Panic on unrecognized types (should not happen)
16 lines
287 B
Go
16 lines
287 B
Go
package mocks
|
|
|
|
import (
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/shared"
|
|
)
|
|
|
|
type MockStorageQueue struct {
|
|
AddCalled bool
|
|
AddError error
|
|
}
|
|
|
|
func (queue *MockStorageQueue) Add(row shared.StorageDiffRow) error {
|
|
queue.AddCalled = true
|
|
return queue.AddError
|
|
}
|