Skip to content

Commit

Permalink
fix: lru cache
Browse files Browse the repository at this point in the history
  • Loading branch information
F4ever committed Jun 11, 2024
1 parent 8216a0b commit 79f0165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def wrapper(*args, **kwargs):
# Do not cache any requests with relative blocks
# Like 'latest', 'earliest', 'pending', 'safe', 'finalized' or if default block provided
if issubclass(args[0].__class__, ContractInterface):
block = kwargs.get('block_identifier', None)
block = kwargs.get('block_identifier', args[-1])
if block is None or block in BlockParams.__args__:
return func(*args, **kwargs)

Expand Down

0 comments on commit 79f0165

Please sign in to comment.