Skip to content

Commit

Permalink
Fix cache for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Nov 3, 2023
1 parent c7cfe4b commit 99f3aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_safe_operator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from functools import cache
from functools import lru_cache
from unittest import mock
from unittest.mock import MagicMock

Expand Down Expand Up @@ -246,7 +246,7 @@ def test_send_ether(self):
self.assertTrue(safe_operator.send_ether(random_address, value))
self.assertEqual(self.ethereum_client.get_balance(random_address), value)

@cache
@lru_cache(maxsize=None)
def _deploy_l2_migration_contract(self) -> ChecksumAddress:
# Deploy L2 migration contract
safe_to_l2_migration_contract = self.w3.eth.contract(
Expand Down

0 comments on commit 99f3aaa

Please sign in to comment.