Skip to content

Commit

Permalink
(BIDS-2535) fixed method name in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Feb 6, 2024
1 parent 33b0c3a commit 5ec91c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/bigtable_eth1.go
Original file line number Diff line number Diff line change
Expand Up @@ -4598,10 +4598,10 @@ func (bigtable *Bigtable) GetMethodLabel(data []byte, interaction types.Contract
cacheKey := fmt.Sprintf("M:H2L:%s", method)
if _, err := cache.TieredCache.GetWithLocalTimeout(cacheKey, time.Hour, &method); err != nil {
if sig, err := bigtable.GetSignature(method, types.MethodSignature); err == nil {
cache.TieredCache.Set(cacheKey, method, time.Hour)
if sig != nil {
return utils.RemoveRoundBracketsIncludingContent(*sig)
method = utils.RemoveRoundBracketsIncludingContent(*sig)
}
cache.TieredCache.Set(cacheKey, method, time.Hour)
}
}
}
Expand Down

0 comments on commit 5ec91c7

Please sign in to comment.