diff --git a/cmd/composeAndExecute.go b/cmd/composeAndExecute.go index 945b9cc0..05549847 100644 --- a/cmd/composeAndExecute.go +++ b/cmd/composeAndExecute.go @@ -188,7 +188,7 @@ func composeAndExecute() { stateDiffStreamer := streamer.NewStateDiffStreamer(rpcClient) payloadChan := make(chan statediff.Payload) storageFetcher := fetcher.NewGethRpcStorageFetcher(&stateDiffStreamer, payloadChan) - sw := watcher.NewGethStorageWatcher(&storageFetcher, &db) + sw := watcher.NewGethStorageWatcher(storageFetcher, &db) sw.AddTransformers(ethStorageInitializers) wg.Add(1) go watchEthStorage(&sw, &wg) diff --git a/cmd/execute.go b/cmd/execute.go index aeffe1ce..6c82fd01 100644 --- a/cmd/execute.go +++ b/cmd/execute.go @@ -132,7 +132,7 @@ func execute() { stateDiffStreamer := streamer.NewStateDiffStreamer(rpcClient) payloadChan := make(chan statediff.Payload) storageFetcher := fetcher.NewGethRpcStorageFetcher(&stateDiffStreamer, payloadChan) - sw := watcher.NewGethStorageWatcher(&storageFetcher, &db) + sw := watcher.NewGethStorageWatcher(storageFetcher, &db) sw.AddTransformers(ethStorageInitializers) wg.Add(1) go watchEthStorage(&sw, &wg) diff --git a/libraries/shared/fetcher/geth_rpc_storage_fetcher.go b/libraries/shared/fetcher/geth_rpc_storage_fetcher.go index fc48c5ab..1ecbd258 100644 --- a/libraries/shared/fetcher/geth_rpc_storage_fetcher.go +++ b/libraries/shared/fetcher/geth_rpc_storage_fetcher.go @@ -36,7 +36,7 @@ func NewGethRpcStorageFetcher(streamer streamer.Streamer, statediffPayloadChan c } } -func (fetcher *GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageDiff, errs chan<- error) { +func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageDiff, errs chan<- error) { ethStatediffPayloadChan := fetcher.statediffPayloadChan clientSubscription, clientSubErr := fetcher.streamer.Stream(ethStatediffPayloadChan) if clientSubErr != nil {