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

Commit e1de3af

Browse files
Small changes to helper method names/arg names
1 parent 2ff88de commit e1de3af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/shared/fetcher/geth_rpc_storage_fetcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD
5454
errs <- decodeErr
5555
}
5656

57-
accounts := getAccountDiffs(*stateDiff)
57+
accounts := getAccountsFromDiff(*stateDiff)
5858
logrus.Trace(fmt.Sprintf("iterating through %d accounts on stateDiff for block %d", len(accounts), stateDiff.BlockNumber))
5959
for _, account := range accounts {
6060
logrus.Trace(fmt.Sprintf("iterating through %d Storage values on account", len(account.Storage)))
@@ -66,7 +66,7 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD
6666
}
6767
}
6868

69-
func getAccountDiffs(stateDiff statediff.StateDiff) []statediff.AccountDiff {
69+
func getAccountsFromDiff(stateDiff statediff.StateDiff) []statediff.AccountDiff {
7070
accounts := append(stateDiff.CreatedAccounts, stateDiff.UpdatedAccounts...)
7171
return append(accounts, stateDiff.DeletedAccounts...)
7272
}

libraries/shared/storage/utils/diff.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ func FromGethStateDiff(account statediff.AccountDiff, stateDiff *statediff.State
6161
}
6262
}
6363

64-
func HexToKeccak256Hash(addr string) common.Hash {
65-
return crypto.Keccak256Hash(common.FromHex(addr))
64+
func HexToKeccak256Hash(hex string) common.Hash {
65+
return crypto.Keccak256Hash(common.FromHex(hex))
6666
}

0 commit comments

Comments
 (0)