From 5ec91c76f63526d77f5ab0c8c9b05c044823e3df Mon Sep 17 00:00:00 2001 From: RamiRond Date: Tue, 6 Feb 2024 16:01:04 +0100 Subject: [PATCH] (BIDS-2535) fixed method name in cache --- db/bigtable_eth1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/bigtable_eth1.go b/db/bigtable_eth1.go index c21226583a..b7a0c937b8 100644 --- a/db/bigtable_eth1.go +++ b/db/bigtable_eth1.go @@ -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) } } }