Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6672ecf

Browse files
Add trace debugging after parsing statediff
1 parent f315988 commit 6672ecf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libraries/shared/fetcher/geth_rpc_storage_fetcher.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD
5959
for _, account := range accounts {
6060
logrus.Trace(fmt.Sprintf("iterating through %d Storage values on account", len(account.Storage)))
6161
for _, storage := range account.Storage {
62-
logrus.Trace("adding storage diff to out channel")
6362
diff, formatErr := utils.FromGethStateDiff(account, stateDiff, storage)
63+
logrus.Trace("adding storage diff to out channel",
64+
"keccak of address: ", diff.KeccakOfContractAddress.Hex(),
65+
"block height: ", diff.BlockHeight,
66+
"storage key: ", diff.StorageKey.Hex(),
67+
"storage value: ", diff.StorageValue.Hex())
6468
if formatErr != nil {
6569
errs <- formatErr
6670
}

0 commit comments

Comments
 (0)